April 13, 2023 Learn » Re: Returning a reference to be manipulated | |||
|---|---|---|---|
| |||
...0).byRef;
}
}
void main()
{
stats foo;
auto x = foo["tacos"];
x++;
assert(foo["tacos"] == 1);
}
``` | |||
April 12, 2023 Learn » Re: Mir-ion:YAML Example | |||
|---|---|---|---|
| |||
...bar: 4}`;
CustomStruct s = yamlString.deserializeYaml!CustomStruct;
assert(s == S("str", 4));
}
```
If you want... | |||
April 12, 2023 Learn » Re: Assocative array lookup for object | |||
|---|---|---|---|
| |||
...data)
{
return *ret;
}
return null;
}
assert(handler["D Lang"] == &foo);
assert(handler["null"] is null... | |||
April 12, 2023 Issues » [Issue 23835] New: Accessing variable outside nested function creates delegate even if it is static | |||
|---|---|---|---|
| |||
...Builder builder;
Function func = () {
return builder.perform();
};
assert(func() == 2);
}
struct Builder {
static int perform... | |||
April 12, 2023 Issues » [Issue 23312] Crash when calling writeln in WinMain | |||
|---|---|---|---|
| |||
...s end that _setmode is expected to assert out if anything isn't right. For... | |||
April 12, 2023 Learn » Re: Assocative array lookup for object | |||
|---|---|---|---|
| |||
...new Handler!Bitmap;
handler.set("D Lang", foo);
assert(handler["D Lang"] == &foo);
}
```
SDB@79 | |||
April 10, 2023 Issues » [Issue 23619] ImportC: Doesn't work with flecs.h | |||
|---|---|---|---|
| |||
...need statement expressions extension for GLibC's assert() https://issues.dlang.org/show_bug.cgi... | |||
April 10, 2023 Issues » [Issue 23509] ImportC: need statement expressions extension for GLibC's assert() | |||
|---|---|---|---|
| |||
...need statement expressions extension for GLibC's assert() https://github.com/dlang/dmd/pull/15093 -- | |||
April 10, 2023 Issues » [Issue 18002] assert subverts the type system with the messages that it accepts | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=18002 RazvanN <razvan.nitu1305@gmail.com> changed... | |||
April 10, 2023 General » Re: D lexer, parser, and ImportC parser are now standalone | |||
|---|---|---|---|
| |||
...d", 0, 0);
if (!mod.read(loc))
assert(0, "can't read");
}
-----
Linux:
-----
Linking dparser... | |||
Copyright © 1999-2021 by the D Language Foundation