[perl6/specs] 982eda: Prevent some confusion re a b c

2015-08-11 Thread GitHub
) Changed paths: M S04-control.pod Log Message: --- Prevent some confusion re a b c

Re: @a = @b || @c

2000-08-06 Thread Johan Vromans
Peter Scott [EMAIL PROTECTED] writes: @a = @b || @c should 'work'. In P5 it puts @b in scalar context and thus evaluates as the number of elements in @b if there are any. Define 'work'. if (@b) { @a = @b } else { @a = @c } $a[$_] = $b[$_] || $c[$_] foreach (0..max(@a,@b,@c)) ...other

@a = @b || @c

2000-08-05 Thread Peter Scott
@a = @b || @c should 'work'. In P5 it puts @b in scalar context and thus evaluates as the number of elements in @b if there are any. This one is so tiny, I feel like it should be grouped with something else before it's big enough for an RFC... what do people think? Is it part of a larger