At 05:21 PM 10/16/2001 +0100, Tom Hughes wrote:
>In message <[EMAIL PROTECTED]>
>           Simon Cozens <[EMAIL PROTECTED]> wrote:
>
> > Commit it for now, but I'd really, really love it if we could
> > automate this sort of thing.
>
>I have a plan to semi-automate it which I nearly implemted the other
>day but didn't get around to. Basically the idea is to extend things
>so an ops file can contain this:
>
>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...)

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to