xp-framework/rfc — Issue #2: Static initializer
Author: thekid
Created: 2011-10-17 14:48:45+00:00
State: closed
Labels: framework, implemented

Scope of Change
====
Make classes have a static initializer to be able to initialize static
member variables to a class.

Rationale
====
Static members of a class can only be initialized to scalars in a class
definition.

Functionality
====
The static initializer will, if existant for a class, be called by uses().

Implementation:

```php

```

Example:

```php

```

Dependencies
====
PHP5
XP2
Changes to uses() functionality.

Related documents
====
http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#39245
http://www.developer.com/java/other/article.php/2238491