Mail Archives: djgpp/2000/10/21/16:59:27
from: Johan Henriksson, leadprogrammer @ www.realsoftware.cjb.net
"It is not the length of life that counts but what you make out of it" - me
----------------------------------------------------------------------------
----
>> >> >Why go to all the trouble of learning C++ if all you want to learn
>> >> >is C?
>> >> * You can read ~100% more sources to others apps
>> >True, but by that logic you should also learn Java, Perl, etc.,
>> >while you're at it, then you could read even more sources.
>> I'd suggest learning basic as well. Then you have most languages covered.
>Who uses Basic? :)
I :)
But in fact, the interesting with Basic is that it lives in other languages.
Look at
perl! It's full of basic-like syntax. So, learning C, Basic, some OO-lang
and
maybe asm will make it possible to read any language.
>> >A C++ compiler will choke on
>> > char *ptr = malloc(9);
>> >although this is fine in C.
>> Is it? Didn't know it was legal with such init's.
>I meant inside a function, otherwise it's obviously not allowed.
>The problem C++ has with the above is that malloc() returns void*,
>which is not the same as the type of ptr.
Yeah, I've run across this.
<snip URL yada yada>
Thanks
- Raw text -