[PHP] Re: [PHP-QA] php5: read-only variables

2004-02-09 Thread Vivian Steller
Jan Lehnardt wrote: > [...] > * Constants. > > The Zend Engine 2.0 introduces per-class constants. > > Example: > > class Foo { > const constant = 'constant'; > } > > echo 'Foo::constant = ' . Foo::constant . "\n"; > ?> > > Old code that has no user-defined classes or functions > named 'cons

[PHP] Re: [PHP-QA] php5: read-only variables

2004-02-09 Thread Jan Lehnardt
Hi, On 9 Feb 2004, at 8:26, Vivian Steller wrote: hello, talking about php5, i'm missing "read-only" attributes/variables for classes/objects. i.e. this would be very useful for implementing the new DOM Level 3 Interfaces as given in http://www.w3.org/TR/2003 CR-DOM-Level-3-Core-20031107/idl-defi