in reply to I love anonymous functions!

To address you rC concerns (assuming I understand them correctly), your best bet would probably be to defined a struct containing all of your possible paramters:
struct Args { int stuff; int stuff2; };
Then you can just pass this one struct to all of your functions, and they can all have the same function signature/prototype.

Replies are listed 'Best First'.
Re^2: I love anonymous functions!
by Fletch (Bishop) on Jun 29, 2004 at 17:11 UTC

    Actually it might be better to make a struct with a type field and a union member that contained all the possible arguments rather than having a potentially huge struct. Then again if you're going to do that just pass the type and a void* and cast appropriately.