In article <Xns99D9F3A56BDFantontxtgmailcom@[EMAIL PROTECTED]
>,
Anton <anton.txt@[EMAIL PROTECTED]
> wrote:
> > Note that you can do OOP in PP, without any language helpfulness.
> That's interesting! Is there a way to "emulate" simple incapsulation?
FWIW, you en emulate the entire thing.
Back when C++ was young, a C++ compiler was really a front-end script
called "cfront", which converted your C++ source code to C-source, then
the old c compiler, which compiled the C code.
So, anything you can do in C++, you can do in C.
Actually, that's pretty much true of any language since, you can write a
C-compiler/interpreter for pretty much any language, then run your
other-language source code through it!
So, in the very-extreme case, you could make up whatever construct you
want, then write a mini (or not ;) compiler/front-end for it, and have a
many or few of these sorts of constructs as you like.
--
Please take off your pants or I won't read your e-mail.
I will not, no matter how "good" the deal, patronise any business which
sends
unsolicited commercial e-mail or that advertises in discussion newsgroups.


|