[sdiy] IN your mind, what is ....
Scott Gravenhorst
music.maker at gte.net
Tue Feb 3 22:40:56 CET 2004
What I've been made to understand is that C++ protects the environment from the
programmer. IMHO, that's absurd and falls right in line with the "Microsoft
Think-4-You" mentality. What that says is that you can write crap with C++ that
won't usually break the machine... well, maybe...
There is no substitute for thinking and hard work.
"Michael E. Caloroso" <analoguediehard at att.net> wrote:
>Which is a great feature is you want reentrant functions, which 1) is
>not very often and 2) consumes memory each time you build a data
>structure. This is a no-no in embedded applications because it leads to
>bloatware.
>
>I'm all for C's convention of call-by-reference for functions. It's
>much easier on memory resources. Most applications do not need the
>sophisication (or obfuscation depending on your POV) that C++ offers.
>
>MC
>
>ChristianH wrote:
>> not quite, in this case the struct references a function, it does not
>> contain it. The point is that in
>>
>> Christian
>>
>>
>>
>> On Tue, 3 Feb 2004 11:23:21 +0100 (CET) Rainer Buchty wrote:
>>
>>
>>>>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
>>>
>>
>>
>>
>>
>
>
=========================================================
- Where merit is not rewarded, excellence fades.
- Hydrogen is pointless without solar.
- What good are laws that only lawyers understand?
- The media's credibility should always be questioned.
- Governments do nothing well, save collect taxes.
-- Scott Gravenhorst | LegoManiac / Lego Trains / RIS 1.5
-- Linux Rex | RedWebMail by RedStarWare
-- FatMan: home1.gte.net/res0658s/FatMan/
-- NonFatMan: home1.gte.net/res0658s/electronics/
-- Autodidactic Master of Arcane and Hidden Knowledge.
More information about the Synth-diy
mailing list