Re: [perl #77126] Cannot declare a Complex number without i

2010-08-10 Thread Michael Cartmell
Thanks Moritz, it just felt like I should be able to leave out the "+ 0i" since that's how I wrote them when studying maths;) Thanks for the shiny new toy;) Regards, Michael On 11/08/10 00:59, Moritz Lenz via RT wrote: On Tue Aug 10 01:28:11 2010, a_...@bigpond.net.au wrote: my Complex $c

Re: Large integers, ** and Int

2010-08-10 Thread Aaron Sherman
On Tue, Aug 10, 2010 at 10:39 AM, Moritz Lenz wrote: > Am 10.08.2010 01:11, schrieb Aaron Sherman: > > I've been running into all sorts of problems trying to take S02 at its >> word >> that Int supports arbitrary precision. It *sort of* does. >> > > It does in Perl 6, but not in Rakudo (known li

Re: regex and

2010-08-10 Thread Eirik Berg Hanssen
On Tue, Aug 10, 2010 at 9:00 PM, wrote: > Once the & operator is in rakudo, though... I gather I /could/ do something > like the following > > ^ [ * & ] $ > > And this would in effect ensued that the sequence "abc" doesn't exist > anywhere across the match for > > > Is this correct? > Not

What should be returned by the .keys method for Match invocants?

2010-08-10 Thread Stéphane Payrard
I edited my garbled sentences. [15:28:22] I know that a match is both an array and a hash and that both containers have a .keys method. But I would expect .keys for a Match to return a list of the named reductions [15:28:37] rakudo: grammar A { token TOP { }; token a { a } }; class A::A {

[perl #77146] What should be returned by the .keys method for Match invocants?

2010-08-10 Thread via RT
# New Ticket Created by Stephane Payrard # Please include the string: [perl #77146] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=77146 > I edited my garbled sentences. [15:28:22] I know that a match is both an array an

[perl #76978] [BUG] The &mkdir built-in has the wrong default mode in Rakudo

2010-08-10 Thread Carl Mäsak via RT
On Tue Aug 03 23:28:39 2010, masak wrote: > the &mkdir builtin creates a directory with mode 000 per > default. do we really have the balance between security and > least-surprise right in this case? > sounds like a flat out bug to me > should be 777 > * masak submits rakudobug This has been fi

[perl #77144] "while $foo ~~ m:g//" should warn

2010-08-10 Thread via RT
# New Ticket Created by Wenzel Peppmeyer # Please include the string: [perl #77144] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=77144 > my $s = 'abcd'; while $s ~~ m:g/(.)/ { print $0 }; Neither works nor does it give a

RE: regex and

2010-08-10 Thread philippe.beauchamp
Back to your original advice... > If you want to match an alphabetic string which does not include 'abc' > anywhere, you can write this as > > ^ [ ]* $ I presume this only works here because is one character... if instead of I used anything more complicated (for example) token name {

Re: regex and

2010-08-10 Thread Moritz Lenz
philippe.beauch...@bell.ca wrote: > On the & operator... are you saying that it would operate basically as > expected... > allowing sets of rules and'ed rather than or's with the | ? Yes, with the limitation that both parts separated by & have to match the same length of string, so that for exam

RE: regex and

2010-08-10 Thread philippe.beauchamp
Great! That does it. Thanks. :) I realized my error on the anchors after sending... but didn't think of the * on the grouping. On the & operator... are you saying that it would operate basically as expected... allowing sets of rules and'ed rather than or's with the | ? --- Phil -Origin

Re: regex and

2010-08-10 Thread Moritz Lenz
Hi, philippe.beauch...@bell.ca wrote: > rule TOP > { > ^ > [ > & * > & > ] > $ > } The & syntax is specced, but it's not yet implemented in Rakudo. But note that is a zero-width assertion, so your e

regex and

2010-08-10 Thread philippe.beauchamp
Hi there... New to the list and getting to understand perl6 after a bit of a hiatis from the Perl world. I'm working my way through the new grammar syntax trying to implement some useful modules, and was wondering if there is a mechanism within the grammar constructs to allow two rules to appl

[perl #77140] [BUG] Nil.defined should probably not return True

2010-08-10 Thread Carl Mäsak via RT
On Tue Aug 10 09:00:25 2010, cognominal wrote: > perl6 > > say Nil.defined > 1 It goes against my expectations too, but it's spec. Rejecting ticket.

[perl #77140] [BUG] Nil.defined should probably not return True

2010-08-10 Thread via RT
# New Ticket Created by Stephane Payrard # Please include the string: [perl #77140] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=77140 > perl6 > say Nil.defined 1 > -- cognominal stef

Re: The case of modules

2010-08-10 Thread Moritz Lenz
Hi, some of this has been discussed on #perl6, so I'd like to give a brief summary only: Am 06.08.2010 17:53, schrieb Tadeusz Sośnierz: While writing neutro (a working module installer, while waiting for proto/pls, see [1]), and wandering around modules listed on proto.perl6.org, I started wo

[perl #77138] [BUG] subset attempt fails with Null PMC access

2010-08-10 Thread via RT
# New Ticket Created by Solomon Foster # Please include the string: [perl #77138] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=77138 > colomon: star: subset ComplexNumeric of Numeric where { ($_ ~~ Real) || ($_ ~~ Complex

[perl #77126] Cannot declare a Complex number without i

2010-08-10 Thread via RT
# New Ticket Created by Michael Cartmell # Please include the string: [perl #77126] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=77126 > mich...@wslx1:working> perl6 -v This is Rakudo Perl 6, version 2010.07-47-g9fd5eaa

Re: Large integers, ** and Int

2010-08-10 Thread Moritz Lenz
Am 10.08.2010 01:11, schrieb Aaron Sherman: I've been running into all sorts of problems trying to take S02 at its word that Int supports arbitrary precision. It *sort of* does. It does in Perl 6, but not in Rakudo (known limitation). Moritz

Large integers, ** and Int

2010-08-10 Thread Aaron Sherman
I've been running into all sorts of problems trying to take S02 at its word that Int supports arbitrary precision. It *sort of* does. But there are the edge cases where it doesn't. This might just be something that's not there yet, and I understand, but I thought I should report it. If exponentiat

[perl #77134] negated smart-match does not topicalize like ~~

2010-08-10 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #77134] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=77134 > 15:49 < moritz_> rakudo: say 'abc' ~~ .say 15:49 <+p6eval> rakudo 4bd478: OUTPUT«abc␤1␤»

r31939 -[S32::IO] update to new type names, remove some thinkos

2010-08-10 Thread pugs-commits
Author: moritz Date: 2010-08-10 14:55:57 +0200 (Tue, 10 Aug 2010) New Revision: 31939 Modified: docs/Perl6/Spec/S32-setting-library/IO.pod Log: [S32::IO] update to new type names, remove some thinkos Modified: docs/Perl6/Spec/S32-setting-library/IO.pod =

perl6-all@perl.org

2010-08-10 Thread pugs-commits
Author: masak Date: 2010-08-10 13:50:30 +0200 (Tue, 10 Aug 2010) New Revision: 31938 Modified: docs/Perl6/Spec/S32-setting-library/Str.pod Log: [S32/Str] nicer where clause for &pack Reads better and is more amenable to compiler optimization. Suggested by TheDamian++. Modified: docs/Perl6/Spe

r31937 -[S32/Str] fixed thinko in &pack signature

2010-08-10 Thread pugs-commits
Author: masak Date: 2010-08-10 11:47:45 +0200 (Tue, 10 Aug 2010) New Revision: 31937 Modified: docs/Perl6/Spec/S32-setting-library/Str.pod Log: [S32/Str] fixed thinko in &pack signature Spotted by moritz++ Modified: docs/Perl6/Spec/S32-setting-library/Str.pod =