August 12 Learn » Re: Why does this mixin fail to compile? | |||
|---|---|---|---|
| |||
...types—which does not require a complete statement: https://dlang.org/spec/type.html#mixin_types | |||
August 05 Issues » [Issue 24696] New: Lack of null reference checking enables full access to arbitrary memory locations in @safe | |||
|---|---|---|---|
| |||
...1024 * 1024;
static foreach (i; 0 .. 255) {
mixin("ubyte[limit] array", i, ";");
}
ref ubyte opIndex... | |||
August 04 General » Re: enums and version/static if/"inheritance" | |||
|---|---|---|---|
| |||
...B b) if (op != "in") {
return Typedef(mixin("payload "~op~" b.payload"));
}
//static if (!is... | |||
August 04 General » Re: D is the best tool for this!!! How do we tell them?? | |||
|---|---|---|---|
| |||
...translated code may make more sense if done with a policy-based template and `mixin`. | |||
August 01 DIP Ideas » Re: Type Inference for Struct/Enum Literals - identifier literals | |||
|---|---|---|---|
| |||
...be useful as an argument to a mixin template instead of a string literal for... | |||
August 01 Learn » Get compile time string of dmd command line options "-os" & "-target" | |||
|---|---|---|---|
| |||
...case for this? mixin & import
Long list of version.....
version(Windows)
mixin(import("foo_windows... | |||
August 01 General » Re: enums and version/static if/"inheritance" | |||
|---|---|---|---|
| |||
...m;
version(Windows)
mixin(import("foo_windows.enum"));
else version(AArch64)
mixin(import("foo_aarch64... | |||
August 01 General » Re: enums and version/static if/"inheritance" | |||
|---|---|---|---|
| |||
...me 2 years ago to use a mixin for enums in the case of BindBC... | |||
July 31 Learn » Segmentation fault while reading a file | |||
|---|---|---|---|
| |||
...case 0:
mixin("materials[key]." ~ vec ~ ".x = to!float(val);");
break;
case 1:
mixin("materials... | |||
July 30 General » Re: enums and version/static if/"inheritance" | |||
|---|---|---|---|
| |||
...common; mixin(makeEnumBindFns(cStyle: true, dStyle: true)); //this defines `makeEnumBind` //makes `enum Plant: ulong`: mixin... | |||
Copyright © 1999-2021 by the D Language Foundation