Re: eqv and comparing buts

2010-05-27 Thread Darren Duncan
Larry Wall wrote: Or going the other direction, perhaps we're missing a primitive that can produce a data structure with the type information stripped, and then eqv might be able to determine structural equivalence between two canonicalized values. Often you still want to know the declared type

[perl #75368] [BUG] infix: shouldn't differ from infix: when applied to junctions in Rakudo

2010-05-27 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #75368] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75368 > actually, $i !~~ any(|$nth) should be the same as !($i ~~ any(|$nth))iiuc the

[perl #69170] [BUG] Roles are stringified in a less-than-awesome way in Rakudo

2010-05-27 Thread jn...@jnthn.net via RT
On Wed Sep 16 05:57:09 2009, masak wrote: > rakudo: role A { method foo { self.Str } }; say A.foo > rakudo a9ff30: OUTPUT«()<0xb6ace1c8>␤» > * masak submits rakudobug > > I guess we're punning the role into a class here. Maybe that class > should stringify to 'A()<0xb6ace1c8>' instead of no name

[perl #72696] [BUG] Defining two different enumerations with the same enum value should result in ambiguity in Rakudo; doesn't

2010-05-27 Thread Shrivatsan via RT
Here's something more along the same lines. rakudo: enum One ; enum Two ; say &d; rakudo 982e8e: OUTPUT«Contextual $*PKGDECL not found␤current instr.: 'perl6;Perl6;Grammar;add_my_name' pc 44311 (src/gen/perl6-grammar.pir:79)␤» for sure, it's a LTA error message. Regards, Shrivatsan

[perl #75370] Enum name as type constraint is unreasonably strict

2010-05-27 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #75370] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75370 > Not sure if this should work: 09:39 < isBEKaml> rakudo: enum somenum ; my somenum $temp

Re: eqv and comparing buts

2010-05-27 Thread Jon Lang
Darren Duncan wrote: > Larry Wall wrote: >> >> Or going the other direction, perhaps we're missing a primitive that >> can produce a data structure with the type information stripped, and >> then eqv might be able to determine structural equivalence between >> two canonicalized values. > > Often yo

[perl #75376] [BUG] An 'our'-scoped class cannot inherit from a 'my'-scoped class in Rakudo

2010-05-27 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #75376] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75376 > rakudo: my class A {}; our class B is A {} # via jnthn++ rakudo 982e8e: OUTPUT«Lexical

Re: eqv and comparing buts

2010-05-27 Thread Jon Lang
Jon Lang wrote: > Right.  Still, there are times when duck-typing, flawed as it is, > might be exactly what is needed to resolve the problem at hand.  I > forget who or in what context, but I vaguely recall someone posting an > article here that proposed the use of £ in signatures as a modifier to

r30878 -[S05] clarify :ratchet behavior with input from pmichaud++

2010-05-27 Thread pugs-commits
Author: sorear Date: 2010-05-28 02:10:37 +0200 (Fri, 28 May 2010) New Revision: 30878 Modified: docs/Perl6/Spec/S05-regex.pod Log: [S05] clarify :ratchet behavior with input from pmichaud++ Modified: docs/Perl6/Spec/S05-regex.pod ===

Re: Command-line args (weekly contribution to P6)

2010-05-27 Thread David Green
On 2010-05-26, at 8:52 am, Larry Wall wrote: > On Wed, May 26, 2010 at 07:22:36AM -0700, jerry gay wrote: > : On Wed, May 26, 2010 at 00:53, Moritz Lenz wrote: > : > sub MAIN(:name(:$n)) > : > then $n has two names, 'name' and 'n', and we could consider all > one-letter > : > parameter names as s