Jason Gloudon wrote:

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 ?
Sorry, thought this is obvious ;-)

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


Reply via email to