At 12:46 PM +1100 11/17/02, Damian Conway wrote:
>Dan Sugalski pondered:
>
>>What does:
> >
>> $foo = any(Bar::new, Baz::new, Xyzzy::new);
>> $foo.run;
>>
>>do?
>
>Creates a disjunction of three classnames, then calls the C<.run> method on
>each, in parallel, and returns a disjunction of the results of the calls
>(which, in the void context is ignored, or maybe optimized away).
I was afraid you'd say that. It does rather complicate things, as the
interpreter really isn't set up to be quantum for control flow. Can
we at least guarantee undefined order of operations on things? (I can
pitch heisenbunnies at people if it'll help)
--
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