On Tue, May 26, 2009 at 8:05 PM, John M. Dlugosz
<2nb81l...@sneakemail.com> wrote:
> Jon Lang dataweaver-at-gmail.com |Perl 6| wrote:
>>
>> >From S09, under Junctions:
>>
>> "The exact semantics of autothreading with respect to control
>> structures are subject to change over time; it is therefore
On Tue, May 26, 2009 at 04:10:45PM -0700, yary wrote:
> On Tue, May 26, 2009 at 1:57 PM, Patrick R. Michaud
> wrote:
> > On Mon, May 25, 2009 at 12:37:34PM -0700, yary wrote:
> > How about...?
> >
> > sub odd { ^$a % 2 }
> typo. "sub odd {$^a % 2}" works (caret goes between "$" and "a")
Corre
Jon Lang dataweaver-at-gmail.com |Perl 6| wrote:
>From S09, under Junctions:
"The exact semantics of autothreading with respect to control
structures are subject to change over time; it is therefore erroneous
to pass junctions to any control construct that is not implemented via
as a normal sing
On Tue, May 26, 2009 at 10:37:41PM +0100, Nelo Onyiah wrote:
> All I am seeing is just the message:
>
> Reading configuration information from parrot/parrot_config ...
> Died at Configure.pl line 104.
Okay, this is definitely helpful.
What do you get from manually running "parrot/parrot_config -
>From S09, under Junctions:
"The exact semantics of autothreading with respect to control
structures are subject to change over time; it is therefore erroneous
to pass junctions to any control construct that is not implemented via
as a normal single or multi dispatch. In particular, threading
junc
On Tue, May 26, 2009 at 06:43:40PM -0500, John M. Dlugosz wrote:
> Daniel Carrera daniel.carrera-at-theingots.org |Perl 6| wrote:
>> The following construction doesn't do what a user might expect:
>>
>> for 0...@foo.elems -> $k { do_something($k,@foo[$k]) }
>
> Write ^...@foo.elems as a shortcut of
I fixed that today... will check in in a few hours.
It's harder to come up with a new example than to update syntax. :)
--John
Eirik Berg Hanssen Eirik-Berg.Hanssen-at-allverden.no |Perl 6| wrote:
pugs-comm...@feather.perl6.nl writes:
statement, or if you want to attach multiple stateme
# New Ticket Created by "Brian S. Julin"
# Please include the string: [perl #65988]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=65988 >
(\(1,2),\(3,4)).perl.say # .perl of a list of captures will explode
maximum recurs
Author: jdlugosz
Date: 2009-05-27 01:59:45 +0200 (Wed, 27 May 2009)
New Revision: 26940
Modified:
docs/Perl6/Spec/S04-control.pod
Log:
[s04] replace example that no longer was applicable after previous edits;
update old Array and List uses to Capture (and note that bare parens construct
a Cap
yary not.com-at-gmail.com |Perl 6| wrote:
I was wondering why the perl5 example didn't work in p6- $_ is a
contextual variable,
so why doesn't the body of "odd" get its $_ value
from grep in something like this:
sub odd_a { $_ % 2}
If you make it a formally declared "sub", then you have to
Daniel Carrera daniel.carrera-at-theingots.org |Perl 6| wrote:
Hello,
The following construction doesn't do what a user might expect:
for 0...@foo.elems -> $k { do_something($k,@foo[$k]) }
Obviously, the intention is to step through every key/value in @foo.
Buf @f...@foo.elems] does not exis
I'm a relative beginner at perl6, but pretty good with perl5 (and C
and a few others), so I read
"for 0...@foo.elems"
as saying "Give me a list with one item longer then @foo", not "give
me the indexes of @foo". I can see users being tripped up by the old
problem of "we start counting at 0 and not
# New Ticket Created by jn...@jnthn.net
# Please include the string: [perl #66034]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=66034 >
01:21 <@jnthn> rakudo: my %h = B => 2; my $x = "ABC"; $x .=
subst(/(<[BD]>)/,
{%h{$0
On Tue, May 26, 2009 at 1:57 PM, Patrick R. Michaud wrote:
> On Mon, May 25, 2009 at 12:37:34PM -0700, yary wrote:
> How about...?
>
> sub odd { ^$a % 2 }
typo. "sub odd {$^a % 2}" works (caret goes between "$" and "a")
> say grep &odd, 0..6;
nice. I need to learn the differences between ca
jason switzer (via RT) wrote:
# New Ticket Created by "jason switzer"
# Please include the string: [perl #66006]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=66006 >
When a method is called without using one of the avai
# New Ticket Created by "jason switzer"
# Please include the string: [perl #66006]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=66006 >
When a method is called without using one of the available signatures, a
misleading e
# New Ticket Created by Ahmad Zawawi
# Please include the string: [perl #65994]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=65994 >
This does not work anymore on the latest rakudo.
fakexecutable.bat
perl6 --target
Hello,
The following construction doesn't do what a user might expect:
for 0...@foo.elems -> $k { do_something($k,@foo[$k]) }
Obviously, the intention is to step through every key/value in @foo. Buf
@f...@foo.elems] does not exist. If @foo = (1,2,3); then @foo.elems is
3, and @foo[3] is unde
Hi,
All I am seeing is just the message:
Reading configuration information from parrot/parrot_config ...
Died at Configure.pl line 104.
It seems to be when the parrot_config file is being closed. I am using
parrot version 1.2.0 (r39025). I did try to install parrot separately and
got the followi
On Mon, May 25, 2009 at 12:37:34PM -0700, yary wrote:
> That's an enjoyable and educational read, thanks!
>
> There's one form under TMTOWTDI that I'd like to see, but can't figure
> out myself. It's the version analogous to this perl5 snippet-
>
> sub odd {$_ % 2}
> say grep odd,0..6;
>
> -w
On Sat, May 23, 2009 at 07:33:06PM +0200, Christian Aperghis wrote:
> Reini Urban a écrit :
> > Patrick R. Michaud schrieb:
> >> On behalf of the Rakudo development team, I'm pleased to announce
> >> the May 2009 development release of Rakudo Perl #17 "Stockholm".
> >> Rakudo is an implementation o
On Sun, May 24, 2009 at 02:18:26PM -0700, Larry Wall wrote:
> On Sun, May 24, 2009 at 12:08:58PM -0700, yary wrote:
> : > I don't recall if defined autovivifies, but assuming it does that would
> make
> : > sense.
> :
> : Agreed that if defined autovivifies, it explains observed behavior in
> : c
HaloO,
John M. Dlugosz wrote:
Daniel Ruoso daniel-at-ruoso.com |Perl 6| wrote:
%a := 1;
is an operation in the hash itself, not in that specific cell of the
hash.
This to me implies that postcircumfix:{'<','>'} returns some
assignment proxy that knows the hash. This is e.g. needed for
auto
pugs-comm...@feather.perl6.nl writes:
> statement, or if you want to attach multiple statements. you must either
> use the curly form or surround the entire expression in brackets of some
> sort:
>
> -@primes = (do (do $_ if .prime) for 1..100);
> +@primes = do $_ if prime($_) for 1..
24 matches
Mail list logo