delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/21/16:59:27

Message-ID: <002d01c03ba2$1594fc00$0500a8c0@brk>
From: "Johan Henriksson" <jhe AT realsoftware DOT cjb DOT net>
To: <djgpp AT delorie DOT com>
Subject: Re: Help!
Date: Sat, 21 Oct 2000 22:59:47 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019