Alan Knowles wrote:

> regards
> alan
>
> Emiliano wrote:
>
> >Ferenc Engard wrote:
> >
> >>> you could use mgd_eval("<"."?".mgd_template($this->component)."?".">");
> >>>wrapped up in the $nav_framelet->display();
> >>>
> >>What does mgd_template do?
> >>
> >
> >mgd_template fetches a page or style element from the current page
> >context and returns it as a string. mgd_eval is about to become extinct.
>
> Did you want to map it to eval - for Backwards compatibility

If there's a clean way, yes. The (C-written) current implementation is a bit
obscure; I don't consider it an option to keep it for the next release.

Having the preparser change mgd_eval(whatever) to
eval("?>".mgd_preparse(whatever)."<?php") is very hard (I tried) because
of the extremely flexible nature 'whatever' can have. If you want to get
it right, you'd be re-implementing a good chink of the Zend language
parser.

Declaring a function as
   function mgd_eval($code) { eval("?>".mgd_preparse($code)."<?php"); }
doesn't work, because mgd_eval evaluates in the current context, and the
function above will create its own private context. And PHP has no
#defines, and I've been told (by ZA) it never will.

Emile



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to