Message-ID: <38C2904B.F425F69D@unb.ca> From: Endlisnis 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: <38BFE6B7 DOT A9D31ED8 AT americasm01 DOT nt DOT com> <8ee0cs85nn9dj8fhdnhh1tap8teboto8kj AT 4ax DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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]" > 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