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
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
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
I agree. See
http://www.nntp.perl.org/group/perl.perl6.internals/2007/08/msg39889.html
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 o