Em Dom, 2009-01-04 às 14:53 +0100, Carl Mäsak escreveu:
> $ parrot languages/perl6/perl6.pbc --target=pir --output=B.pir B.pm
> $ parrot languages/perl6/perl6.pbc --target=pir --output=A.pir A.pm
> Remember, remember, the fifth of November
> current instr.: 'die' pc 14950 (src/builtins/control.pir:
On 2009 Jan 4, at 8:53, Carl Mäsak wrote:
Now, I can precompile the B module to PIR without a problem, but when
I compile the A module, Rakudo/Parrot aborts because it runs the code
in B and dies.
$ parrot languages/perl6/perl6.pbc --target=pir --output=B.pir B.pm
$ parrot languages/perl6/perl6
> m...@edward:~/perl/6$ ./ap2
> @c: 3 elements: ["blue", "light", "hazard"]
> @c[0]: blue
> $c: 3 elements: ["blue", "light", "hazard"]
> $c[0]: blue
> m...@edward:~/perl/6$
>
>
> Is Rakudo's behaviour correct here?
S02 says:
"To get a Perlish representation of any object, use the .perl method. L
> "m" == moritz writes:
m> S02 says:
m> "To get a Perlish representation of any object, use the .perl method. Like
m> the Data::Dumper module in Perl 5, the .perl method will put quotes around
m> strings, square brackets around list values,"
m> So according to this, Rakudo has it
Apologies if the point I'm about to make repeats what either Jeff or
Daniel already said. I have two modules, A and B:
$ cat A.pm
use v6;
use B;
$ cat B.pm
use v6;
die "Remember, remember, the fifth of November";
Now, I can precompile the B module to PIR without a problem, but when
I compile the
On Sun, 04 Jan 2009 14:19:15 -0500, Uri Guttman wrote:
>> "m" == moritz writes:
> m> But I think that a .perl()ification as ("blue", "light", "hayard",) would
> m> make much more sense, because simple thing like
>
> m> @a.push eval(@b.perl)
>
> m> would then DWIM.
>
> for your def
> "ML" == Markus Laker writes:
ML> Adding a single backslash before `eval' pushes an anonymous array on to
ML> @b, as you envisage wanting to do:
ML> # Imagine that @a.perl has produced this:
ML> my $p = "('blue', 'light', 'hazard')";
ML> my @b;
ML> @b.push(\eval $p);
but that
Author: pmichaud
Date: 2009-01-05 08:03:29 +0100 (Mon, 05 Jan 2009)
New Revision: 24759
Modified:
docs/Perl6/Spec/S12-objects.pod
Log:
typo fix.
Modified: docs/Perl6/Spec/S12-objects.pod
===
--- docs/Perl6/Spec/S12-objects.pod