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
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
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
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
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
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
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
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..{$_}"
# 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
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
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,
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
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
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
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
# 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
# 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
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
# 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
# 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
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
# 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
# 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
# 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
# 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
# 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
# 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
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
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
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
30 matches
Mail list logo