David Whipp wrote:
>   $b = 7, 6, 5
>   @b = 7, 6, 5

I understand that C's *interpretation* of the comma operator will be expunged from 
Perl 6. But unless comma's *precedence* is also changing, neither of those statements 
would build a list with three elements.
It seems to me that
  $b = 7, 6, 5;
is the same as
  ($b = 7), 6, 5;
not
  $b = (7, 6, 5);
because '=' binds tighter than ','. So it will assign 7 to $b, and then effectively 
evaluate the statement
  7, 6, 5;
which might build a list and then discard it. I.e., it is akin to these statements:
  [7, 6, 5];
  3 + 4;
  7;
(and equally feckless).

=thom

Reply via email to