All --

> >AUTO_OP add(i, i, i|ic) {
> >   $1 = $2 + $3;
> >}
> >
> >and the opcode reading module would expand the i|ic to create two
> >separate versions of the op. Obviously if two arguments had variants
> >you would get four versions and so on.
> >
> >If people think that's a good solution to the problem then I'll have
> >a go at working up a patch.
> 
> It sounds interesting, certainly. Give it a go and we'll see how it looks. 
> (As long as it doesn't interfere with generating the switch statement or 
> function table the oploop needs...)

This is just the sort of thing I was hoping would become doable by
using '$1', etc. for args and allowing another module to turn that
into a register or constant ref.

As long as the "explosion" of variants happens at the time we read the
ops file, its transparent to everything else.


Regards,
 
-- Gregor
 _____________________________________________________________________ 
/     perl -e 'srand(-2091643526); print chr rand 90 for (0..4)'      \

   Gregor N. Purdy                          [EMAIL PROTECTED]
   Focus Research, Inc.                http://www.focusresearch.com/
   8080 Beckett Center Drive #203                   513-860-3570 vox
   West Chester, OH 45069                           513-860-3579 fax
\_____________________________________________________________________/

Reply via email to