JC> DM> The last I checked in my compiler (Turbo C++ 3.1) "struct" wouldn't
JC> DM> let you use member functions while class would.
JC>I rather doubt that's true, but if it is, it's a compiler bug, not a
JC>characteristic of the language. I never had TC++ 3.1, but BC++ 3.1 did
I have done struct 'classes' with member functions. In fact, I just
went and checked to make sure, and it does. You do, of course, have to
use a .cpp extension rather than a .c extension, so the problem might
have been he tried it as a .c program
JC>work correctly in this regard, and AFAIK, TC++ 3.1 was close enough to
JC>the same that it accepted the same programs even though it didn't do all
JC>the same optimizations and didn't target as many platforms.
Right. TC is just a stripped down version, but the same language.
--- QScan/PCB v1.19b / 01-0162
---------------
* Origin: Jackalope Junction 501-785-5381 Ft Smith AR (1:3822/1)
|