Jason Gloudon wrote:
Sorry, thought this is obvious ;-)On Fri, Nov 22, 2002 at 02:04:20PM +0100, Leopold Toetsch wrote:Parrot_sub_i_i { Parrot_binop_x_x s/<op>/sub/ s/<_N>// }The only question I have is .. How am I supposed to read/translate the above ?
Parrot_binop_x_x has the body of all binop functions. The actual operator is marked as <op>. To generate a Parrot_sub_i_i, <op> is substituted by �sub�. The <_N> suffix is needed for floating point ops, so it gets deleted (substituted by nothing) for integer ops.
Above s/xx/yy/ get eval'ed by perl.
leo
