Hey all,

I had a quick question.  How come I can do this:
<?php
class Foo {
}
class Bar {
  public $f = 'SomeFoo';
}
?>

But this does not work:
<?php
class Foo {
}
class Bar {
  public $f = new Foo();
}
?>
*(Parse error: syntax error, unexpected T_NEW in test.php on line 8)*
**
Thanks!
(I'm running on the 5.3 dev branch)

Reply via email to