Re: Code References

From: Date: Mon, 19 May 2003 13:46:45 +0000
Subject: Re: Code References
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-1713@lists.php.net to get a copy of this message
On Mon, 2003-05-19 at 11:11, George Schlossnagle wrote: > On Monday, May 19, 2003, at 09:23 AM, Sterling Hughes wrote: > > > On Mon, 2003-05-19 at 10:47, George Schlossnagle wrote: > >> Excuse my ignorance, but how does this differ from the features > >> offered > >> by create_function? (Other than having nicer aesthetics.) > >> > > > > create_function is runtime for one thing, this would be compile time > > (code reference, doesn't need to be relookedup). > > Isn't that different semantics than the variable assignments everywhere > else in PHP? Sounds like it's more of a constant.... Nope. Its evaluated at runtime, compiled at compile time. Whereas create_function() is compiled and evaluated at runtime. -Sterling -- "The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch and a user with an idea." - Unknown

« previous php.internals (#1713) next »