On Thu, Aug 03, 2000 at 11:15:17AM -0400, Clayton Scott wrote:
> Why not context()?
Sure, that works too. Although for want(), I can see this instead:
if (want 'hash') { return %hash } # rather than eq
and that reads better than
if (context hash) { return %hash }
Hmm.
want = 'hash'; # tell the world I want a hash?
want = 'Foo'; # tell the world I want a Foo?
sub foo : want(Foo,hash,Dog), need(Foo) {
# foo() wants a Foo, hash, and Dog in that order
# foo() needs a Foo (must have)
}
okay, I've gone tangential ...
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]
- Re: wanthash (Was: Re: date inte... Piers Cawley
- Re: wanthash Dan Sugalski
- Re: wanthash Peter Scott
- Re: wanthash Graham Barr
- Re: date interface (was Re: perl6 requirement... Simon Cozens
- Re: date interface (was Re: perl6 require... Tom Christiansen
- Re: date interface (was Re: perl6 req... Simon Cozens
- wantarray() should be named wantlist() (was R... Tad McClellan
- Re: wantarray() should be named wantlist(... Jonathan Scott Duff
- Re: wantarray() should be named wantl... Clayton Scott
- Re: wantarray() should be named ... Jonathan Scott Duff
- Re: wantarray() should be na... Nathan Wiger
- Re: wantarray() should be na... skud
- Re: wantarray() should be named wantlist(... Graham Barr
- Re: wantarray() should be named wantlist() (... Damian Conway
- Re: wantarray() should be named wantlist(... Tad McClellan
- Re: date interface (was Re: perl6 requirements, o... Tom Christiansen
- Re: date interface (was Re: perl6 requirement... Matt Sergeant
- Re: date interface (was Re: perl6 requirements, on boo... Damian Conway
