Message-ID: <002d01c03ba2$1594fc00$0500a8c0@brk> From: "Johan Henriksson" To: Subject: Re: Help! Date: Sat, 21 Oct 2000 22:59:47 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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. Thanks