can I alias something to void?
torhu
fake at address.dude
Wed Jan 17 09:46:36 PST 2007
I'm translating some C headers.
#define AL_CONST const
void set_window_title(AL_CONST char *name) { /* ... */ }
I'm wondering if there is a legitimate way to turn AL_CONST into nothing
in D. This compiles:
alias void AL_CONST;
void set_window_title(AL_CONST char *name) { /* ... */ }
But I have no idea if that screws up the parameter type somehow, or if
it's legal according to the D spec.
Of course I could delete the AL_CONST's. But I'm just curious.
More information about the Digitalmars-d-learn
mailing list