On Thu, 7 Aug 2003, Jos Visser wrote:

> Accompanying patch adds the "fortytwo" op to Parrot, so the following
> PASM becomes legal:
>
>       fortytwo I0
>       print I0
>       print "\n"
>       end
>
> Example:
>
> $ ../parrot test42.pasm
> 42
>

 Why not just use a macro?

#   .macro fortytwo (A)
#    set .A, 42
#  .endm
#
#  .fortytwo(I0)
#  print I0
#  print "\n"
#  end


 Simon

Reply via email to