Re: Let range() return a generator?

From: Date: Sat, 18 Mar 2017 02:30:33 +0000
Subject: Re: Let range() return a generator?
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-98584@lists.php.net to get a copy of this message
On Fri, Mar 17, 2017 at 9:10 PM, David Rodrigues <david.proweb@gmail.com> wrote: > In this case, when you call range() inside a Generator() constructor, then > the range() (in C++) will acts differently, like a xrange(). > Doable: Yes. Fundamentally broken within PHP's engine design: Definitely. Calling scope should absolutely not have that kind of effect on what's being called. -Sara

« previous php.internals (#98584) next »