Clarification of S04 closure traits

2009-07-25 Thread Ben Morrow
I'm iworking on a patch for Perl 5 that implements the Perl 6 closure traits (ENTER/LEAVE/...) as special blocks. There are several details that aren't clear to me from either S04 or the spec tests; I apologize if these have been discussed before, as I haven't been following p6l. I'm also not subsc

Re: Parameter binding

2009-07-25 Thread yary
On Sat, Jul 25, 2009 at 2:04 PM, Patrick R. Michaud wrote: > On Thu, Jul 23, 2009 at 05:56:31PM +0200, TSa wrote: >> Hmm, it seems to be the case that the binding is defined to be a >> readonly binding to the variable. I consider this a bad thing. >> We should have my $x = 1; foo($x++,$x,$x++); to

Re: Parameter binding

2009-07-25 Thread Patrick R. Michaud
On Thu, Jul 23, 2009 at 05:56:31PM +0200, TSa wrote: > Hmm, it seems to be the case that the binding is defined to be a > readonly binding to the variable. I consider this a bad thing. > We should have my $x = 1; foo($x++,$x,$x++); to call foo(1,2,2) > and not foo(1,3,2) or even foo(2,3,1). The cap

r27726 - docs/Perl6/Spec

2009-07-25 Thread pugs-commits
Author: lwall Date: 2009-07-25 20:09:00 +0200 (Sat, 25 Jul 2009) New Revision: 27726 Modified: docs/Perl6/Spec/S05-regex.pod Log: [S05] permanently reserve ; within regex as indicating missing terminator Modified: docs/Perl6/Spec/S05-regex.pod =

Re: indentation with multiple languages

2009-07-25 Thread Moritz Lenz
Mark J. Reed wrote: > On Sat, Jul 25, 2009 at 5:03 AM, Moritz Lenz wrote: >> Presumably you want here-docs, which can be indented in Perl 6: >> >>perl 6 code >>perl 6 code >>$script.say(Q:to); >> output code >> output code >> END >> >> The leading whitespace will

Re: indentation with multiple languages

2009-07-25 Thread Mark J. Reed
On Sat, Jul 25, 2009 at 5:03 AM, Moritz Lenz wrote: > Presumably you want here-docs, which can be indented in Perl 6: > >    perl 6 code >    perl 6 code >    $script.say(Q:to); >         output code >         output code >         END > > The leading whitespace will be pruned from the string. All

Re: indentation with multiple languages

2009-07-25 Thread Moritz Lenz
Richard Hainsworth wrote: > One of Masak's irritations with perl6 > (http://use.perl.org/~masak/journal/39334) concerns interspacing POD and > code. > > I ran into an analogous problem with a project I am trying to do with > perl6. Since perl6 doesnt yet link to the gd library, and I need > gr

indentation with multiple languages

2009-07-25 Thread Richard Hainsworth
One of Masak's irritations with perl6 (http://use.perl.org/~masak/journal/39334) concerns interspacing POD and code. I ran into an analogous problem with a project I am trying to do with perl6. Since perl6 doesnt yet link to the gd library, and I need graphical output, I use perl6 to compile