Mixin versus c++ preprocessor?
Yossarian
xtauer01 at stud.fit.vutbr.cz
Fri Mar 21 05:33:02 PDT 2008
Hello,
I've got following problem :
I've used c++ preprocessor for function prototyping, eg.
#define DO_MY_FUNCTION(name, type) int name(type t, type t2)
DO_MY_FUNCTION(f1, int) {
}
..
if you ask why - i got simple interpreted language written, and these
prototypes were used
as internal functions, and the order or types of parameters should vary
between versions.
is there any chance to write code like this in D?
--
Tato zpráva byla vytvořena převratným poštovním klientem Opery:
http://www.opera.com/mail/
More information about the Digitalmars-d-learn
mailing list