Hi!

> Right, this here RFC has been drastically improved.
> 
> https://wiki.php.net/rfc/anonymous_classes
> 
> Anyone got any doubts or troubles at this point?
> 
> It's about 5 days until the vote starts.

Couple of points to clarify:

1. Is the new syntax "new class ..." or just "class ..." and new works
the same? I.e. could you do:

$foo = class extends Callback { ... }
$bar = new $foo;

2. What is the scope of the anonymous class? Can it get access to
parent's variable scope? Private functions?

-- 
Stas Malyshev
smalys...@gmail.com

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to