Re: Perl 6 Junctions and MMD

2007-11-20 Thread Allison Randal
Jonathan Worthington wrote: Yup. To be able to implement Perl 6's cmp as an MMD method on the junction, the ability to return a PMC as well as just a -1, 0 or 1 would be handy. Otherwise we just special case the implementation of the <=> and cmp operators to get junctions to thread through t

Re: Perl 6 Junctions and MMD

2007-11-19 Thread Jonathan Worthington
Mehmet Yavuz Selim Soyturk wrote: We could maybe assume that the ordering is well defined between the instances of a PMC class. But cmp needs to compare instances of different PMC classes as well, for which a well defined ordering is less probable. I would not be surprised if in some dynamic lan

Re: Perl 6 Junctions and MMD

2007-11-19 Thread Mehmet Yavuz Selim Soyturk
We could maybe assume that the ordering is well defined between the instances of a PMC class. But cmp needs to compare instances of different PMC classes as well, for which a well defined ordering is less probable. I would not be surprised if in some dynamic language all of a==b, ab evaluate to fa

Re: Perl 6 Junctions and MMD

2007-11-18 Thread Mehmet Yavuz Selim Soyturk
I agree. See http://www.nntp.perl.org/group/perl.perl6.internals/2007/08/msg39889.html