[sdiy] IN your mind, what is ....
Rainer Buchty
buchty at cs.tum.edu
Tue Feb 3 11:23:21 CET 2004
> Want an explanation that makes C++ sound good?
>
> "C structs that can contain functions".
Uhm... C structs can contain functions, even without ++. How about
something like this:
typedef struct mc68cmd_s
{
char *mask;
char *mnem;
char *para;
int (*callback)(dispc_t *pc, mc68cmd_s *cmd, int datas[], char *str);
int flags;
} mc68cmd_t;
People just dislike pointers nowadays :)
Rainer
More information about the Synth-diy
mailing list