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

Re: MMD as an object.

Thread Previous | Thread Next
David Storrs
March 10, 2005 05:00
Re: MMD as an object.
Message ID:
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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About