www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/05/13:14:31

Message-ID: <38C2904B.F425F69D@unb.ca>
From: Endlisnis <s257m AT unb DOT ca>
X-Mailer: Mozilla 4.7 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++, what is it (Was: Re: Fastest bitblt?)
References: <Pine DOT LNX DOT 4 DOT 10 DOT 10003031823500 DOT 948-100000 AT darkstar DOT grendel DOT net> <38BFE6B7 DOT A9D31ED8 AT americasm01 DOT nt DOT com> <8ee0cs85nn9dj8fhdnhh1tap8teboto8kj AT 4ax DOT com>
Lines: 38
Date: Sun, 05 Mar 2000 17:46:39 GMT
NNTP-Posting-Host: 24.114.6.233
X-Complaints-To: abuse AT home DOT net
X-Trace: news1.rdc1.on.wave.home.com 952278399 24.114.6.233 (Sun, 05 Mar 2000 09:46:39 PST)
NNTP-Posting-Date: Sun, 05 Mar 2000 09:46:39 PST
Organization: @Home Network Canada
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Damian Yerrick wrote:

> On Fri, 03 Mar 2000 11:22:15 -0500, "Campbell, Rolf [SKY:1U32:EXCH]"
> <moscoop AT americasm01 DOT nt DOT com> wrote:
>
> >> > C++ can do operator overloading, which converts
> >> > farpokel() into an array access.
> >Although you could make a 'FarArray' class which changed
> >array accessing into 'farpoke*' calls.
> Sorry, I was unclear.
> Anyone care to write a FarArray class based on templates (hee hee
> hee)?

It would be pointless to have it as a templated class.  Because there's no
point in sticking anything other than bytes/words/longs in far memory.  Also,
it would be tricky (if not impossible) to get the class members to properly
access data in a far this pointer...

> >> BTW I love C++ but sometimes I get the feeling when I read
> >> statements like the above that it is more a toolkit which you
> >> can use to "patch up" various problematic designs rather than
> >> a programming language.
> >
> >What do you mean by a toolkit for patching designs?
> I think Kalum means that C++ can be used to create wrappers for
> libraries whose interfaces suck.

    Yes, it CAN be used to make good interfaces for C code, but that is just
scratching the surface of it's power.


--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT HotMail DOT com
          ICQ: 32959047


- Raw text -


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