develooper Front page | perl.perl6.language | Postings from March 2005

Re: MMD as an object.

Thread Previous | Thread Next
From:
David Storrs
Date:
March 10, 2005 05:00
Subject:
Re: MMD as an object.
Message ID:
20050310130021.GA39315@megazone.bigpanda.com
On Wed, Mar 09, 2005 at 03:38:52PM -0600, Rod Adams wrote:

> There lingers the case of:
>   
>    use Foo; # from above, exports &bar is MMD::Random
> 
>    multi sub bar {...}
> 
> Does this generate an error, since one could expect this particular &bar 
> to be Manhattan? Or does it assume Random, since there's already a &bar 
> in existence? In my head, it currently makes sense to say that the new 
> &bar inherits the Random policy. Only something like:

This seems like action-at-a-distance to me; I use some random module,
define a couple of multis without realizing that they also exist in
the module, and am baffled as to why I don't get the dispatch behavior
I expect.

--Dks

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