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]

Reply via email to