Mail Archives: djgpp/1997/10/10/02:30:38
In article <61k3vi$8nt AT sjx-ixn3 DOT ix DOT netcom DOT com>, firewind
<firewind AT metroid DOT dyn DOT ml DOT org> writes
>Georg Kolling <Georg DOT Kolling AT t-online DOT de> wrote:
>> David Jenkins schrieb:
>> > BTW Do you use printf(), malloc(), for(;;), if(), struct{} etc,etc??
>> > Just the same thing as using a library as far as I'm concerned.
>
>> you won't find for, if, struct as well as int, void, while, do, return,
>> typedef, or operators like /, %, &, +, -, *, &&, ||, << in any library
>> because they are the main elements of the programming language C.
>
>Well, no kidding, but imho the analogy is still valid. The operators are
>equivilant to functions (like add(), subtract(), blah blah). Even if you
>absolutely insist on throwing these out, I daresay you can't throw out
>the Standard Library.
>
I've thought some more on this, I think my analogy is *wrong*, I think
*ALL* the libraries should be thrown away from the beginning, newbies
should NOT use them, they should learn how to use inline assembly from
the beginning, even for things like printf(), malloc() and EVERYTHING
else.
BTW The above sarcasm was aimed at Georgs attitude not Firewinds, most
newbies have moved from an interpretted language (Like Basic) to C,
where all the putpixel, screen_open, stuff is handled by the
interpreter, the concept of a programming environment without any
support for graphics is completely alien.
When I first installed DJGPP I was amazed to find I couldn't open a
640*480 screen and throw a few thousand stars around. I surfed for a
while and learned that I needed to use assembly to do things I'd taken
for granted before, but I didn't want to learn assembly, then I found
some kind bloke had done everything I wanted allready in Allegro.
I can forget learning assembly for the time being and concentrate on
what I originally intended to learn, C.
--
http://www.jenkinsdavid.demon.co.uk for C programmers.
David Jenkins
- Raw text -