On Sat, Dec 13, 2008 at 01:01:10AM +0800, howard chen wrote:
> Hello,
>
> On Fri, Dec 12, 2008 at 1:23 PM, Henk van Oers wrote:
> >>
> >> It can be done as a library, take a look at Perl6 grammars.
> >
> > It has been done for perl5. See PLP on CPAN.
>
>
> Sure there are many way to do this in
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #61322]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61322 >
rakudo: sub foo { }; sub foo {}; say "ok";
OUTPUT[ok]
peters: nice one. that's a bug
# New Ticket Created by Ron Schmidt
# Please include the string: [perl #61324]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61324 >
As discussed on IRC today 12/11:
my $x; say $x, 2;
Outputs: 2\n
my $x = undef; say $x, 2
Hi!
> The problem is how to get it popular and mainstream. The only solution
> is let make something standard. (or de facto standard such as RoR in
> Ruby)
The only solution -- make good web-frameworks. And so when we have one
we can pack all it`s stuff in one "distro" and wright good
documentati
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #61338]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61338 >
rakudo: grammar Foo { token foo { 'foo' } }; grammar Bar is
Foo { token bar { | 'bar'
Hello world,
I never posted here and never contributed to perl6 in any way but i
would like to share my mind about it ...
On Sat, Dec 13, 2008 at 01:34:44PM +1100, Timothy S. Nelson wrote:
> On Sat, 13 Dec 2008, howard chen wrote:
> What I think is more likely to happen in reality is that
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #61348]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61348 >
Rakudo r33860 can handle extending classes with new methods just fine...
$ perl6 -e 'cl
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #61352]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61352 >
The following doesn't parse in Rakudo r33860:
$ perl6 -e 'class A { method x { say "OH
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #61356]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61356 >
It feels a bit odd that the below two one-liners don't work the same
way in Rakudo r3386
Hi!
I just try to remake last parrot on that machine, that time I have
another segaful:
make[1]: Entering directory `/home/ihrd/parrot/compilers/pct'
../../parrot -o ../../runtime/parrot/library/PCT.pbc --output-pbc PCT.pir
../../parrot -o ../../runtime/parrot/library/PCT/PAST.pbc --output-pbc
src
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #61334]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61334 >
rakudo: multi foo(&c where { .arity == 1 }) { say "One." };
multi foo(&c where { .arity
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #61332]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61332 >
rakudo: sub foo(&code_block where { 1 <= .arity <= 2 }) { say
"OH HAI" }; foo(1)
rakud
# New Ticket Created by Jeff Horwitz
# Please include the string: [perl #61336]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61336 >
if split() returns fewer elements than the list assignment expects (a
valid condition),
Author: tene
Date: Sun Dec 14 02:01:06 2008
New Revision: 33876
Modified:
trunk/docs/pdds/pdd23_exceptions.pod
Log:
[pdd23]: Rewrite a few sections, update for sanity, add comments.
Modified: trunk/docs/pdds/pdd23_exceptions.pod
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #61350]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61350 >
In Rakudo r33860, the following happens when you try to put a method
in an outer class a
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #61354]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61354 >
Rakudo r33860 dies when an eval inside a class contains a method declaration.
$ cat inj
(23:24:09) ihrd: hi
(23:24:28) ihrd: question about .kv
(23:24:39) ihrd: rakudo: my @a = {a => 1}, {b =>2}; my %h = foo => @a;
say %h.kv.perl;
(23:24:41) p6eval: rakudo 33880: OUTPUT[["foo", {"a" => 1}, {"b" => 2}]]
(23:24:59) ihrd: rakudo: say ({ foo => [{a=>1}, {b=>1}]}).perl;
(23:25:02) p6eval:
Martin Kjeldsen (via RT) wrote:
> # New Ticket Created by Martin Kjeldsen
> # Please include the string: [perl #61308]
> # in the subject line of all future correspondence about this issue.
> # http://rt.perl.org/rt3/Ticket/Display.html?id=61308 >
>
>
> When using rules at least with overwri
On Dec 13, 2008, at 3:44 AM, Moritz Lenz wrote:
Martin Kjeldsen (via RT) wrote:
# New Ticket Created by Martin Kjeldsen
# Please include the string: [perl #61308]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61308 >
Whe
Илья (>):
> (23:24:28) ihrd: question about .kv
> (23:24:39) ihrd: rakudo: my @a = {a => 1}, {b =>2}; my %h = foo => @a;
> say %h.kv.perl;
> (23:24:41) p6eval: rakudo 33880: OUTPUT[["foo", {"a" => 1}, {"b" => 2}]]
> (23:24:59) ihrd: rakudo: say ({ foo => [{a=>1}, {b=>1}]}).perl;
> (23:25:02) p6eva
On Sun, Dec 14, 2008 at 11:55:54PM +1000, Илья wrote:
> (23:24:09) ihrd: hi
> (23:24:28) ihrd: question about .kv
> (23:24:39) ihrd: rakudo: my @a = {a => 1}, {b =>2}; my %h = foo => @a;
> say %h.kv.perl;
> (23:24:41) p6eval: rakudo 33880: OUTPUT[["foo", {"a" => 1}, {"b" => 2}]]
> (23:24:59) ihrd:
Author: moritz
Date: 2008-12-14 21:18:22 +0100 (Sun, 14 Dec 2008)
New Revision: 24368
Modified:
docs/Perl6/Spec/S29-functions.pod
Log:
[S29] small clarification of @list.end
Modified: docs/Perl6/Spec/S29-functions.pod
===
--- doc
Marc Chantreux wrote:
On Sat, Dec 13, 2008 at 01:34:44PM +1100, Timothy S. Nelson wrote:
On Sat, 13 Dec 2008, howard chen wrote:
What I think is more likely to happen in reality is that people will
make various Perl6 "distros", ie. the Perl6 core + whatever modules are
suitable to the pu
Uri Guttman wrote:
>> "p" == pugs-commits writes:
>
> p> This document attempts to document the list of builtin functions in
> Perl 6.
> p> It assumes familiarity with Perl 5 and prior synopses.
> p> @@ -870,6 +870,10 @@
> p> comparisons. C<@by> differs from C<$by> in that each c
Moritz Lenz wrote:
> From S29:
>
> : =item end
> :
> : our Any method end (@array: ) is export
> :
> : Returns the final subscript of the first dimension; for a one-dimensional
> : array this simply the index of the final element. For fixed dimensions
> : this is the declared maximum subscript.
# New Ticket Created by Moritz Lenz
# Please include the string: [perl #61364]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=61364 >
S29 says:
: If all criteria are exhausted when comparing two elements, sort should
: ret
On Sat, 13 Dec 2008, Dan Stephenson wrote:
Wouldn't HTML::Mason ( or something like it ) be a better approach to solving
this problem
in Perl6? I'm a huge Mason fan and feel it answers the use cases being stated
here aptly.
Something like this could be included in this "diamond" Perl6 distro
27 matches
Mail list logo