Re: some newbie questions about synopsis 5

2006-02-17 Thread H. Stelling
Patrick R. Michaud wrote: In the following, / (a) [ (b) (c) | $5 := (d) $0 := (e) ] (f) / does the first alias have any effect on where the f's will go (probably not)? I'll defer to @Larry on this one, but my initial impression is that the (f) capture would go into $6. I think that

Re: some newbie questions about synopsis 5

2006-02-17 Thread Patrick R. Michaud
On Fri, Feb 17, 2006 at 02:33:12PM +0100, H. Stelling wrote: Patrick R. Michaud wrote: In the following, / (a) [ (b) (c) | $5 := (d) $0 := (e) ] (f) / does the first alias have any effect on where the f's will go (probably not)? I'll defer to @Larry on this one, but my initial

Re: some newbie questions about synopsis 5

2006-02-17 Thread Larry Wall
On Fri, Feb 17, 2006 at 08:32:18AM -0600, Patrick R. Michaud wrote: : The synopsis says: : : * If a subrule appears two (or more) times in the same lexical scope :(i.e. twice within the same subpattern and alternation), or if the :subrule is quantified anywhere within the entire rule,

Selective String Interpolation

2006-02-17 Thread Brad Bowman
Hello, When building code strings in Perl 5 I usually write the code, then wrap it in double quotes, then \ escape everything light blue under syntax highlighting. I was wondering if there'll a better way in Perl 6. I thought it would be nice to define the variables you wish to interpolate

CODE {...} mentioning variables without interpolation

2006-02-17 Thread Brad Bowman
Hi again, LS06/Macros Is it possible to refer to a variable in a CODE quotation without splicing it in as an AST or string? I can't see how this is be possible under S06, unless using OUTER:: is intended to be a non-splicing variable mention. The sample snippet in S06 seems simple but got

Re: CODE {...} mentioning variables without interpolation

2006-02-17 Thread Larry Wall
On Sat, Feb 18, 2006 at 01:57:18AM +0200, Brad Bowman wrote: : Hi again, : : LS06/Macros : : Is it possible to refer to a variable in a CODE quotation without : splicing it in as an AST or string? I can't see how this is : be possible under S06, unless using OUTER:: is intended to be : a

Re: Selective String Interpolation

2006-02-17 Thread Damian Conway
Brad Bowman asked: When building code strings in Perl 5 I usually write the code, then wrap it in double quotes, then \ escape everything light blue under syntax highlighting. I was wondering if there'll a better way in Perl 6. I thought it would be nice to define the variables you wish to