On Wed, Feb 18, 2015 at 3:01 PM, François Laupretre <franc...@php.net> wrote:
> > De : Benjamin Eberlei [mailto:kont...@beberlei.de] > > > > nested can be done in any way, its a statement so the following would > work: > > > > <orm(new JoinTable(['joinColumns' => [new JoinColumn('id', > 'other_id')]]))> > > Dmitry is planning compile time evaluation, which is probably the only way > to do it if we use PHP expressions. Is class instantiation, or function > call returning a new object instance (I guess) compatible with compile time > evaluation ? > > More : would userland functions be available (if already defined, of > course) ? if yes, what about functions defined in the same file but below > the annotation calling it ? Two-pass ? > > Regards > > François > > > I answer the last time. Annotations is just a key value storage, where value may be AST for php expression. Your may do with it whatever you like (traverse, evaluate, compile), but PHP core itself is not going to do anything. Thanks. Dmitry.