Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- someTypeToStoreFunction func;
- constructor()
- {
- if(argcount == 1)
- func = func_which_takes_1_arg;
- else if(argount == 2)
- func = func_which_takes_2_arg;
- else
- func = func_which_takes_3_arg;
- }
- executeit2()
- {
- func(a,b);
- }
Add Comment
Please, Sign In to add comment