Re: get_property_ptr

From: Date: Sun, 18 May 2003 23:55:17 +0000
Subject: Re: get_property_ptr
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-1686@lists.php.net to get a copy of this message
On Sun, 2003-05-18 at 18:11, Marcus Börger wrote: > At 22:27 18.05.2003, Sterling Hughes wrote: > >hey, > > > >I'm working on simplexml (sources available in pecl), and I want it to > >work in a foreach() loop without requiring the use of a temporary > >variable, ie: > > > >[...] > > > >So, any insights on how I might be a smarter boy, and actually get this > >thingy to work? :) > > > Just look into SPL > cvs co spl > and implement spl::foreach with you object > the php5 version of sqlite does that and it is working fine :-) > Hmm? I'm not looking to overload the opcodes, just to make the object callback work so that foreach() can happen naturally. So, I want to actually implement a good get_property_ptr, not make get_property_ptr unnecessary :) -Sterling > regards > marcus -- "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup

« previous php.internals (#1686) next »