We may actually make an attempt at it in the engine 2 :)

At 00:33 3/7/2001, Daniel Beckham wrote:
>I know this will be also shot down, but at least I tried.  What about the
>possiblity of foreach simply acting on the variable as if it was list($var)
>or array($var)?  It seems that it wouldn't break any existing behavior, but
>would only make foreach more flexible.
>
>Daniel
>
>----- Original Message -----
>From: "Zeev Suraski" <[EMAIL PROTECTED]>
>To: "Daniel Beckham" <[EMAIL PROTECTED]>
>Cc: "php-dev" <[EMAIL PROTECTED]>
>Sent: Monday, July 02, 2001 4:19 PM
>Subject: Re: [PHP-DEV] foreach behavior and error suppression (@foo)
>
>
> > If the question is about
> > @foreach(...) ...
> >
> > Then the answer is somewhere between 'hell no!' and 'not possible with the
> > current state of the code'.  foreach is a statement, whereas @ is an
> > operator that works on expressions...
> >
> > At 00:16 3/7/2001, Daniel Beckham wrote:
> > >There are several open feature requests in the bug system to allow the
>use
> > >of @ to suppress warnings when using a non array with foreach.  What's
>the
> > >status of this?  Is this a "hell no!", "not possible with the current
>state
> > >of the code" or a "when we get around to it"?
> > >
> > >Thanks,
> > >
> > >Daniel
> > >
> > >
> > >--
> > >PHP Development Mailing List <http://www.php.net/>
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> > --
> > Zeev Suraski <[EMAIL PROTECTED]>
> > CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to