Dan Sugalski writes:
> Right now the only good way to find out if a value is true or not is 
> to do something like:
> 
>  $I0 = 1
>  if $P0, done
>  $I0 = 0
>  done:
> 
> and look in $I0 for the result.

[snip]

> Anyway, because of it I'm pondering non-flowcontrol logical ops. That
> is, something like:
> 
>    istrue I0, P5        # I0 = 1 if P5 is true
>    isgt I0, P5, P6      # I0 = i if P5 > P6

Definitely!  When I was writing my compiler to parrot I ran into that
awkward idiom over and over.  Something like this would be great.

Luke

Reply via email to