Mail Archives: djgpp/2000/03/05/13:14:31
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 -