Thread overview
aliasing linkage identifiers
Sep 19, 2003
Lars Ivar Igesund
Sep 19, 2003
Walter
Sep 19, 2003
John Boucher
September 19, 2003
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


September 19, 2003
I see your point. I'll have to think about it!


September 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 Igesund
>
>

I'd use #define and pass it through a C preprocessor -- hee hee hee!!

John Boucher -- Quite contrary
The King had Humpty pushed.