On Tue, 2003-03-18 at 17:10, Andrei Zmievski wrote:
> On Tue, 18 Mar 2003, Sterling Hughes wrote:
> > Don't do that. :)
> > 
> > The other problem is (besides what derick said) with Ze2 it is not
> > assured that accesses will be lowercased, that's an optional thing.  One
> > can overload classes, and be CS (I do it with ext/mono).
> 
> I realize that I can overload get_constructor and get_method handlers
> and do all that stuff. But, seriously, this is screwed up. Given the
> situation where class is "GtkButton", if I specify constructor all
> lowercased, it won't be called at all! If I make it the same as the
> class name, then "parent::GtkButton" stuff stops working. Something must
> be done.

You're missing my point.  Your patch doesn't allow for one to use
get_constructor and get_method handlers to implement case-sensitive
handlers, as you are lowercasing the stuff on insert, the patch is
limiting.

I think the best solution is just to play nice with the engine, register
it as "gtkbutton" or "__constructor" in the code itself.  Then, add an
introspection callback to the engine, which can handle all the accesses
to function tables, etc.

-Sterling

> -Andrei                                       http://www.gravitonic.com/
> 
> "Everything is a matter of a little programming" -- Rasmus Lerdorf
-- 
-- 
"That stuff's easy compared to installing horde :)" 
    - Alan Knowles, In response to my applause for creating a LALR 
    parser for PHP.


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

Reply via email to