New syntax for string mixins

VladD2 vc at rsdn.ru
Fri Dec 17 21:35:42 PST 2010


Don Wrote:
> Suppose the pre-compiled code, when run, asks what CPU it's on. What's 
> the answer? Is it X or Y?

Current: X
Target: Y

Macro - a plugin to the compiler. It works on the same platform as the compiler, but generates code through the API which abstracts the macro from the target platform. If you need generate platform specific code, you should worry about it in macro logic.
In any case macro is a meta-programm wich generate or/and transform code. 


More information about the Digitalmars-d mailing list