Re: YANP (Yet Another Namespace Proposal)

From: Date: Sun, 10 Jul 2005 14:48:16 +0000
Subject: Re: YANP (Yet Another Namespace Proposal)
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-17216@lists.php.net to get a copy of this message
Stanislav, Correct, in fact, I began to work on this yesterday. My approach will be to translate whatever's possible at compile-time, as I'm doing now, and saving the import alias info for what's needed at runtime, such as in the case of variable class names. This hashtable will also be needed for namespace imports, if they are in fact implemented. -- Jessie Stanislav Malyshev wrote: > JH>>is a znode, and what is assigned to the opcode is "opline->op2 = > JH>>*class_name". This function is changed to check the import hashtable, > and if JH>>a match is found, then the znode string value is updated to > contain the full JH>>class name! Here's some pseudocode: > > This of course won't work with variable class names.

« previous php.internals (#17216) next »