develooper Front page | perl.perl6.internals | Postings from February 2001

Re: PDD 2, vtables

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
February 6, 2001 07:22
Subject:
Re: PDD 2, vtables
Message ID:
5.0.2.1.0.20010206101018.01aa7668@24.8.96.48
At 11:32 AM 2/6/2001 -0200, Branden wrote:
>Simon Cozens wrote:
> > > > =item logical_or
> > > > =item logical_and
> > > > =item logical_not
> > >
> > > Er, why not just use get_bool?
> >
> > Overloading.
> >
>
>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.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About