D - aliasing linkage identifiers
- Lars Ivar Igesund (19/19) Sep 19 2003 Hi!
- Walter (1/1) Sep 19 2003 I see your point. I'll have to think about it!
- John Boucher (4/23) Sep 19 2003 I'd use #define and pass it through a C preprocessor -- hee hee hee!!
Hi! I think it would be useful to be able to alias the linkage identifiers. I want to do version (Win32) { alias Windows lnkmod; } version (linux) { alias C lnkmod; } extern (lnkmod) { ... ... ... } As it is now, I need to put the whole extern block inside a version block, thus doubling up the set of declarations. If I'ver overlooked some other solution, please mention it :) Lars Ivar Igesund
Sep 19 2003
I see your point. I'll have to think about it!
Sep 19 2003
In article <bke681$2cdr$1 digitaldaemon.com>, Lars Ivar Igesund says...Hi! I think it would be useful to be able to alias the linkage identifiers. I want to do version (Win32) { alias Windows lnkmod; } version (linux) { alias C lnkmod; } extern (lnkmod) { ... ... ... } As it is now, I need to put the whole extern block inside a version block, thus doubling up the set of declarations. If I'ver overlooked some other solution, please mention it :) Lars Ivar IgesundI'd use #define and pass it through a C preprocessor -- hee hee hee!! John Boucher -- Quite contrary The King had Humpty pushed.
Sep 19 2003