www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/17/08:17:46

From: Chris Mears <cmears AT bigpond DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++, complex, etc
Organization: only if absoultely necessary
Message-ID: <ma05is82rlb7tjfd2evebath2u4o3b2upt@4ax.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000517101641 DOT 4709E-100000 AT is> <39224964 DOT BBFA67CB AT mtu-net DOT ru>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Lines: 36
Date: Wed, 17 May 2000 21:25:26 +1000
NNTP-Posting-Host: 203.54.69.114
X-Trace: newsfeeds.bigpond.com 958562292 203.54.69.114 (Wed, 17 May 2000 21:18:12 EST)
NNTP-Posting-Date: Wed, 17 May 2000 21:18:12 EST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Wed, 17 May 2000 11:25:24 +0400, that hoopy frood "Alexei A.
Frounze" <alex DOT fru AT mtu-net DOT ru> wrote:

>Eli Zaretskii wrote:
>> 
>> On Wed, 17 May 2000, Alexei A. Frounze wrote:
>> 
>> > IMHO there must no be any C++ library, just a C++ compiler itself, if people
>> > don't have standard for C++ library.
>> 
>> I don't think this is possible.  All the C++ classes are implemented
>> in a library (libstcxx.a, in the DJGPP case).  You *must* have that
>> library, and you *must* include the appropriate headers, if you want
>> to use data types other than the basic ones (int, char, etc.).
>
>I can define my own classes instead. Just a C++ compiler is needed, no C++
>library.  Stream I/O could be implemented w/o C++ library, complex stuff,
>strings, etc. can also be done w/o that library. So why should I use C++
>library, if it's not standartized? What are the reasons?

I thought it was.  Is it?

>Btw, when C++ was invented? How long we have it w/o of standard?
>
>> 
>> It is the same situation as with size_t in C: if you don't have
>> headers which come with a library, you cannot use size_t.
>
>size_t is not a problem. Btw, what so I need size_t for, if both size_t and
>int equal the same machine word?

Who says they do?

-- 
Chris Mears
ICQ: 36697123

- Raw text -


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