[sdiy] IN your mind, what is ....
Magnus Danielson
cfmd at bredband.net
Tue Feb 3 22:14:53 CET 2004
From: Rainer Buchty <buchty at cs.tum.edu>
Subject: Re: [sdiy] IN your mind, what is ....
Date: Tue, 3 Feb 2004 11:23:21 +0100 (CET)
Message-ID: <Pine.LNX.4.56.0402031120090.7805 at atbode100.informatik.tu-muenchen.de>
> > 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 :)
Yeap. Also, how the hell do you think things work under the hood anyway?
I don't need that level of C++ education, I am way beyond that state since
early 90thies. Inheritance, overloading etc. etc. There is a "STYLE" of C++
which people talk about, but it doesn't make sense in all the googoo people
talk... and that sense is what I want to hear. Look at the Objective C manual
and there you see things very clearly motivated and you also get good "under
the hood" motivations for doing things this or that way. I don't need the
fluffy pictures and vauge connections, I want to know what the hell is a good
way of writing C++ stuff and WHY! When do what. A really good C++ programmer
will understand my frustration, but I haven't had time to bother any of the
once I know. I want to have it written down so I can read about it in my own
good time.
Cheers,
Magnus
More information about the Synth-diy
mailing list