Ceylon language
bearophile
bearophileHUGS at lycos.com
Fri Apr 15 10:59:01 PDT 2011
Andrej Mitrovic:
> alias bind!CreateWindow(void, void, width, height, null, null, null,
> void) myWindow;
How do you give a void argument to a function, in D2? This doesn't work, despite having templated void arguments seems potentially useful:
void foo(T)(T x) {}
void bar() {}
void main() {
foo(bar());
}
> But I've had zero luck with CTFE and
> templates. Perhaps Don's upcoming CTFE revamp could make this
> possible.
Don has changed mostly how CT functions manage their memory.
Bye,
bearophile
More information about the Digitalmars-d
mailing list