Mike Wey wrote: > Should this work? > > version(Windows) > { const char[] external = "extern(Windows):"; } > else > { const char[] external = "extern(C):"; } > > mixin(external); > typedef void function() foo; No, it doesn't work (although it compiles).