Re: [PHP-DEV] iterating objects with interfaces

2003-03-12 Thread Zeev Suraski
At 02:48 12/03/2003, Stephen Thorne wrote: How soon till ('pre'.($_GET['textArea']-strip_tags()).'/pre')-print(); ? Considering $_GET is an array of strings, infinity :) Zeev -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] iterating objects with interfaces

2003-03-12 Thread Derick Rethans
On Wed, 12 Mar 2003, Zeev Suraski wrote: At 02:48 12/03/2003, Stephen Thorne wrote: How soon till ('pre'.($_GET['textArea']-strip_tags()).'/pre')-print(); ? Considering $_GET is an array of strings, infinity :) Is that before or after hell freezes? :) Derick --

Re: [PHP-DEV] iterating objects with interfaces

2003-03-11 Thread Marcus Börger
At 19:05 10.03.2003, Marcus Börger wrote: Standard PHP Library Updated version allows: class obj_array implements spl::array_read { bla ... } $obj = new obj_array(); $value = $obj[$index]; marcus -- -- Marcus Börger -

Re: [PHP-DEV] iterating objects with interfaces

2003-03-11 Thread Stephen Thorne
All this is starting to feel strangely pythonic. How soon till ('pre'.($_GET['textArea']-strip_tags()).'/pre')-print(); ? Stephen. On Wed, 12 Mar 2003 10:24, Marcus Börger wrote: At 19:05 10.03.2003, Marcus Börger wrote: Standard PHP Library Updated version allows: class obj_array

Re: [PHP-DEV] iterating objects with interfaces

2003-03-11 Thread Marcus Börger
At 01:48 12.03.2003, Stephen Thorne wrote: All this is starting to feel strangely pythonic. How soon till ('pre'.($_GET['textArea']-strip_tags()).'/pre')-print(); ? Very far of because i am working with objects and interfaces and have no plan for other types as arrays and longs marcus --

Re: [PHP-DEV] iterating objects with interfaces

2003-03-10 Thread Andrei Zmievski
Very cool. :) On Sun, 09 Mar 2003, Marcus Börger wrote: Hi, i've just done the first step for a new extension which shall make use of interfaces newly implemented in ZE2. currently the extension implements the namespace spl and the interfaces spl_foreach, spl_forward and spl_key. A

Re: [PHP-DEV] iterating objects with interfaces

2003-03-10 Thread Brad LaFountain
This IS pretty cool stuff. Just a comment about the namespace, as i see more of these things added as time goes on. since you are already adding the 'spl' namespace why are you prefixing the classes with the namespace still? This is the whole point of using namespaces. I feel it should be

Re: [PHP-DEV] iterating objects with interfaces

2003-03-10 Thread Marcus Börger
At 15:51 10.03.2003, Brad LaFountain wrote: This IS pretty cool stuff. Just a comment about the namespace, as i see more of these things added as time goes on. since you are already adding the 'spl' namespace why are you prefixing the classes with the namespace still? This is the whole point of

Re: [PHP-DEV] iterating objects with interfaces

2003-03-09 Thread Marcus Börger
At 06:54 09.03.2003, Marcus Börger wrote: Hi, i've just done the first step for a new extension which shall make use of interfaces newly implemented in ZE2. SPL is updated and supports a complete set of iterator interfaces. After moving from Minit/shutdown to Rinit/shutdown i also have no more

[PHP-DEV] iterating objects with interfaces

2003-03-08 Thread Marcus Börger
Hi, i've just done the first step for a new extension which shall make use of interfaces newly implemented in ZE2. currently the extension implements the namespace spl and the interfaces spl_foreach, spl_forward and spl_key. A class that implements these can be used in a foreach() call. This