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

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 and ab

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

Perl 6 Junctions and MMD

2007-11-18 Thread Jonathan Worthington
Hi, Back at OSCON, under the influence of beer, I agreed to take a crack at implementing junctions in Perl 6 on Parrot. I've started working on making good on that. I've not got any of this in a state where I'm happy to send in a patch for people to play with, and it's my first time hacking

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