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