How do you think about the flooding of bracket?
Hasan Aljudy
hasan.aljudy at gmail.com
Fri Jun 16 03:06:01 PDT 2006
Don Clugston wrote:
> Another important feature of the colon is that it can appear inside
> version{} blocks. You can't do this with the {} form.
>
> version(Windows) {
>
> extern(Windows):
>
> } else {
>
> extern(C):
>
> }
>
> // These are extern(Windows) on Windows systems, but
> // extern(C) on Linux.
> // For example, the MySQL functions behave this way.
> void func1();
> void func2();
>
Hmm, sounds like a handy hack :)
More information about the Digitalmars-d
mailing list