global

In D2 variables are thread-local by default. In many cases this is exactly what you need but sometimes true globals are necessary - primarily related to thread and related tool implementation.

This small mixin helper prepends __gshared to input declaration when compiled in D2 mode.

istring
global
(
istring decl
)

Meta