Re: S06 -- grammatical categories and macros

2010-06-30 Thread Jonathan Worthington
Aaron Sherman wrote: See below for the S06 section I'm referring to. I'm wondering how we should be reading the description of user-defined operators. For example, "sub infix:<(c)>" doesn't describe the precedence level of this new op, so how is it parsed? Is there a default? The default is

S06 -- grammatical categories and macros

2010-06-30 Thread Aaron Sherman
See below for the S06 section I'm referring to. I'm wondering how we should be reading the description of user-defined operators. For example, "sub infix:<(c)>" doesn't describe the precedence level of this new op, so how is it parsed? Is there a default? Right now, this doesn't work as I'd expec

Re: Filesystems and files [Was: Re: The obligation of free stuff: Google Storage]

2010-06-30 Thread Aaron Sherman
On Wed, Jun 30, 2010 at 4:29 AM, Richard Hainsworth wrote: It is normally implied that a program already has a 'local' environment, > including a 'local' filesystem. Thus the syntax > my $fn = open('/path/to/directory/filename', :r) or die $!; > implies a local file sytem. > > The idea of an impli

Re: Filesystems and files [Was: Re: The obligation of free stuff: Google Storage]

2010-06-30 Thread Leon Timmermans
On Wed, Jun 30, 2010 at 10:29 AM, Richard Hainsworth wrote: > Would it make sense to define $*FS as the implied local file system, and > thus that a bare 'open' is sugar for > my $fh = $*FS.open('/path/to/directory/filename', :r); > > This then means that there is an implicit > $*FS.connect(); > t

Re: Filesystems and files [Was: Re: The obligation of free stuff: Google Storage]

2010-06-30 Thread yary
Sounds like a sound generalization to make. On Wed, Jun 30, 2010 at 1:29 AM, Richard Hainsworth wrote: > This then means that there is an implicit > $*FS.connect(); > that makes the local system available to the program. "mount" is the jargon to make a filesystem available, looking backwards, t

[perl #74624] tests available

2010-06-30 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S32-num/rat.t commit 88d63ef3980e2853389442bfc169c0de7490db28 Author: bbkr Date: Wed Jun 30 13:27:35 2010 + [t/spec] tests for RT #74624 Any + 0.1 is a Num, not a Rat in Rakudo git-sv

[perl #76206] [patch] Reduced && ([&&] and [and]) is not implemented

2010-06-30 Thread jn...@jnthn.net via RT
On Sun Jun 27 14:21:34 2010, kapran...@gmail.com wrote: > Since && and "and" are special-cased for short-circuiting automatic > reduction does not happen. > > Here a simple patch "by analogy". > Applied patch and tests, thanks. Jonathan

[perl #68788] tests available

2010-06-30 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S03-operators/range.t commit e86dbd27f17ba176d80d25819e9d77e4cbca8995 Author: bbkr Date: Wed Jun 30 12:57:06 2010 + [t/spec] tests for RT #68788 segmentation fault on the "say 1..{$_}"

[perl #76276] [BUG] $() doesn't default to $/.Str if $/.ast is undefined in Rakudo

2010-06-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76276] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76276 > and $() defaults to $/.ast if it exists rakudo: "foo" ~~ /foo/; say "What kind of $()l

[perl #61846] Is this syntax OK: @a[0..**-1]

2010-06-30 Thread Carl Mäsak via RT
On Tue Dec 30 09:52:07 2008, pmichaud wrote: > On Tue Dec 30 01:47:47 2008, masak wrote: > > Just wondering whether the following syntax, currently accepted by > > Rakudo r34628, is legal Perl 6: > > > > $ perl6 -e 'say ("a".."c").list[0..**-1]' > > abc > > > As of r34652, this now produces an e

Re: [perl #76238] Bool.pick always returns false.

2010-06-30 Thread Mark J. Reed
I didn't misunderstand. I just find it confusing that $foo.pick returns $foo when $foo isn't a collection. It's logical but surprising, orthogonal instead of diagonal. I'd rather see .pick fail for non-collections. I get that Bool.pick is supposed to work either way. On Tuesday, June 29, 2010,

[perl #63126] tests available

2010-06-30 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S03-junctions/misc.t commit a583bfa22919ece174a30fb011d5fafbd155af1b Author: bbkr Date: Wed Jun 30 11:35:53 2010 + [t/spec] tests for RT #63126 Junctions in array and hash indices dont work i

[perl #76068] tests available

2010-06-30 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S02-magicals/dollar-underscore.t commit 66f8764d059599f58ab530bf520b6a15d3ae71b7 Author: moritz Date: Wed Jun 30 09:35:00 2010 + [t/spec] test for RT #76068, two iterations of a loop share the

[perl #76238] Bool.pick always returns false.

2010-06-30 Thread Carl Mäsak via RT
On Mon Jun 28 11:38:07 2010, markjreed wrote: > That is terribly confusing. I'm tempted to argue for .pick not being > defined on scalar values. > > Do any of the other non-Enumerated types besides Bool have a finite > range? I'd say .pick should return an appropriate random value when > applied

Re: [perl #76272] AutoReply: [BUG] [RFE} typed range? TotallyOrderedDiscrete role. truemin and truemax methods

2010-06-30 Thread Stéphane Payrard
Correcting and precising my tought. Range does Iterator so it is already discrete and totally ordered. So the interesting class to derive is probably BoundedRange. My goal is to avoid the complexity introduced by excluded values when a truemin and a truemax can be calculated. On Tue, Jun 29, 2010

[perl #76242] [BUG] Double layers of array when binding an Array in a scalar variable to an 'is copy' array variable in Rakudo

2010-06-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76242] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76242 > rakudo: my $a = [1, 2, 3]; foo($a); bar($a); sub foo(@a) { say @a.perl }; sub bar(@a is

[perl #76266] [TODO] Allow aliasing of $ inside regexes in Rakudo (nqp-rx)

2010-06-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76266] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76266 > std: / $ = [ foo ] / std 31503: OUTPUT«ok 00:01 113m␤» std: / $ = [ foo ] / std 3150

[perl #72912] tests available

2010-06-30 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S03-operators/series.t commit 02c2905585bc62ddfe266ef55ae019af0ce646fe Author: moritz Date: Wed Jun 30 09:12:23 2010 + [t/spec] tests for RT #72912, .perl on result of series operator

[perl #76240] Failure in main block fails silently

2010-06-30 Thread via RT
# New Ticket Created by Paweł Pabian # Please include the string: [perl #76240] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76240 > # perl6 -e '...; say "works";' In this case "..." is a "Failure" that stops code execu

[perl #76234] [BUG] Null PMC access when evaluating interpolating string with empty block in Rakudo

2010-06-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76234] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76234 > rakudo: "{}" # :) rakudo 05684c: OUTPUT«Null PMC access in get_string() [...] * masak

[perl #76202] [BUG] > say <1 2 3>.>>.perl # > say <1 2 3>.>>.perl # Confused at line 1, near "say <1 2 3"

2010-06-30 Thread Carl Mäsak via RT
On Sun Jun 27 14:21:29 2010, cognominal wrote: > > say <1 2 3>.>>.perl > Confused at line 1, near "say <1 2 3" > > say <1 2 3>.>>perl > Confused at line 1, near "say <1 2 3" > > say <1 2 3>>>perl > Confused at line 1, near "say <1 2 3" Only the first of those three is valid syntax, according to ST

[perl #76280] [BUG] Four-eyed froggy ::() causes internal Parrot error at compile time in Rakudo

2010-06-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76280] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76280 > rakudo: ::() rakudo 451b40: OUTPUT«===SORRY!===␤ResizablePMCArray: Can't pop from an e

[perl #76278] [BUG] &make outside of an action method has no effect in Rakudo

2010-06-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76278] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76278 > rakudo: "foo" ~~ /foo/; say "What kind of $()l am I?" rakudo 451b40: OUTPUT«What kind

[perl #76272] [BUG] [RFE} typed range? TotallyOrderedDiscrete role. truemin and truemax methods

2010-06-30 Thread via RT
# New Ticket Created by Stephane Payrard # Please include the string: [perl #76272] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76272 > I would expect the following to work % my Range of Int $a; Method '!select' not fou

[perl #76270] [BUG] Class creation should give the class back as a value, not a Code in Rakudo

2010-06-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #76270] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76270 > on the REPL, when I write 'role R {}', it prints 'R()'. but when I do 'class C {}', it

[perl #76238] Bool.pick always returns false.

2010-06-30 Thread via RT
# New Ticket Created by lemb...@wrkhors.com # Please include the string: [perl #76238] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76238 > Using the June release: $ perl6 --version This compiler is built with the Parrot

[perl #76236] Rakudo does not complaint about lack of ; or \n after }

2010-06-30 Thread via RT
# New Ticket Created by Paweł Pabian # Please include the string: [perl #76236] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=76236 > [13:24] bbkr: spec says that after a } either a newline or a ; is required # this c

Filesystems and files [Was: Re: The obligation of free stuff: Google Storage]

2010-06-30 Thread Richard Hainsworth
If I might offer a late viewpoint after reading the Aaron's expanded email (attached below). When originally I suggested using 'open' instead of 'connect', the aim was to keep consistency with the paradigm of files on the local system. However, as Aaron's post suggests, when dealing with remo

Re: very basic type checking

2010-06-30 Thread Darren Duncan
Moritz Lenz wrote: But I fear that optimizations are a risky business, considering our rather low test coverage (and considering that we don't really know how much of our code paths are actually covered by tests). In that case, perhaps Rakudo should have a config or compile-time (of Rakudo it

RE: Two questions on Perl 6 functionality

2010-06-30 Thread Timothy S. Nelson
On Sun, 20 Jun 2010, Xi Yang wrote: You might mis-understood method modifiers. I mean: before x() after x() around x() . Just a note that I've usually seen this called "Aspect-Oriented Programming". 2: Does Perl 6 has build-in support for message passing (like those in Glib and Acti