On Sun Jun 21 23:57:17 2009, amoc wrote:
> : bash$ perl6
> : > 1 ?? 1,2 !! 3,4
> : Ternary error
> : bash$
> 
> this is not wrong as infix:<,> has looser precedence than the ternary
> operator( ?? !! )
> but when ternary error occurs, the program emits the error and dies.
> 
> should provide the proper error message and not die.

Now fixed in 5351a33:

  $ ./perl6
  > 1 ?? 1,2 !! 3,4
  Ternary error at offset 6, found ','
  in Main (src/gen_setting.pm:3279)
  > 

I grant that the error message should be a bit more helpful, but I think
I'll postpone that part for the overall refactor of error message
handling and parsing that will be coming up soon.  As shown above, the
ternary error no longer forces an exit.

Closing ticket,

Pm





Reply via email to