Re: [PHP-DEV] Re: new feature -> with()

2007-10-18 Thread Hartmut Holzgraefe
Sebastian wrote: [...] what i'm suggesting is, that in with(){} you are only allowed to use the methods and variables defined in the object you are using with(). as in the sample, you are not using any global functions or else. this would render 'with' mostly useless as in most real world sit

[PHP-DEV] Re: new feature -> with()

2007-10-12 Thread Sebastian
hi, wow, thats what you're writing is a chain call. this only works, if the methods of a class return the object $this. but if you need a return value other than $this, simply there is no real way. and moreover i don't agree with the other arguments. what i'm suggesting is, that in with(){} yo