At 04:02 PM 2/7/2001 +0000, David Mitchell wrote:
> > >Please see my previous post on the subject. As I pointed there, 
> implementing
> > >|| and && like that breaks short-circuits.
> >
> > No, it doesn't. Just because you pass in two PMCs doesn't mean that they
> > both need to be evaluated. Though the PDD does need to be clearer about 
> how
> > that happens.
>
>Hmmm, I can't quite how that trick works. How whould the following get
>evaluated:
>
>$opened || open(F, ...)

The second PMC would point to a lazy list, so it wouldn't be evaluated 
unless its value gets fetched.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to