mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
13 lines
217 B
D
13 lines
217 B
D
struct Color {
|
|
uint c;
|
|
static Color opCall(uint _c) { Color ret; ret.c = _c; return ret; }
|
|
}
|
|
|
|
// run at compile time
|
|
static const Color white = Color(0xffffffff);
|
|
|
|
void main()
|
|
{
|
|
assert(white.c == 0xffffffff);
|
|
}
|