On Sun May 17 11:57:26 2009, masak wrote: > $ cat A.pm > sub print(*...@args) is export(:DEFAULT) { > say "I'm in ur module, overriding ur functions!"; > } > $ cat B.pm > print "OH HAI" > $ perl6 -e 'use A; use B' > I'm in ur module, overriding ur functions! > > Finally, getting some support from S11: "It must be possible for any > official module to be separately compiled without knowledge of the > context in which it will be embedded, and this separate compilation > must be able to produce a deterministic profile of the interface."
This is probably fixed since we implemented lexical import. On latest Rakudo: C:\Consulting\rakudo>type A.pm sub print(*...@args) is export(:DEFAULT) { say "I'm in ur module, overriding ur functions!"; } C:\Consulting\rakudo>type B.pm print "OH HAI"; C:\Consulting\rakudo>perl6 -e "use A; use B;" OH HAI So, seems fine now. :-) Given to moritz++ for spectests. Thanks, Jonathan