Re: use semantics

2009-01-04 Thread Daniel Ruoso
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

Re: use semantics

2009-01-04 Thread Brandon S. Allbery KF8NH
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

Re: Which brackets should @a.perl use?

2009-01-04 Thread moritz
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. Like the Data::Dumper

Re: Which brackets should @a.perl use?

2009-01-04 Thread Uri Guttman
m == moritz mor...@casella.faui2k3.org 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,

Re: use semantics

2009-01-04 Thread Carl Mäsak
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

Re: Which brackets should @a.perl use?

2009-01-04 Thread Markus Laker
On Sun, 04 Jan 2009 14:19:15 -0500, Uri Guttman wrote: m == moritz mor...@casella.faui2k3.org 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

Re: Which brackets should @a.perl use?

2009-01-04 Thread Uri Guttman
ML == Markus Laker u20090103.20.mla...@spamgourmet.com 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

r24759 - docs/Perl6/Spec

2009-01-04 Thread pugs-commits
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