April 18, 2023 General » Re: removing default case requirement? | |||
|---|---|---|---|
| |||
...that all the time. I don't assert the default statement, because in a lot... | |||
April 17, 2023 Issues » [Issue 20683] errors in static assert do not halt compilation immediately | |||
|---|---|---|---|
| |||
...com> --- Having an error in the static assert expression does not mean that the expression... | |||
April 17, 2023 Announce » LDC 1.32.1 | |||
|---|---|---|---|
| |||
...wrt. leaking `Throwable.info` backtraces. * Fix C assert calls for newlib targets. Full release log... | |||
April 16, 2023 General » Re: need examples to understand postfix expression grammar | |||
|---|---|---|---|
| |||
...2)` would be an example, as in ```d assert(1 / double(2) == 0.5); ``` -- Bastiaan. | |||
April 16, 2023 General » Re: need examples to understand postfix expression grammar | |||
|---|---|---|---|
| |||
...immutable double(2);
static assert(is(typeof(x)==immutable double));
assert(x==2);
}
---
TBH I... | |||
April 15, 2023 Learn » Re: class variable initialization | |||
|---|---|---|---|
| |||
...new Object();
}
void foo(shared Object o)
{
assert(o !is null);
}
Note how foo's... | |||
April 15, 2023 Issues » [Issue 23841] New: isZeroInit does not take into account unions | |||
|---|---|---|---|
| |||
...U
{
float x = 0;
float y;
}
static assert(__traits(isZeroInit, U)); // fails
```
It also wastes... | |||
April 15, 2023 Learn » Re: class variable initialization | |||
|---|---|---|---|
| |||
...alias x this;
}
void foo(Object o)
{
assert(o !is null);
}
void main()
{
Wrapper w... | |||
April 15, 2023 Learn » Re: class variable initialization | |||
|---|---|---|---|
| |||
...main() {
MyClass c1 = new MyClass();
MyClass c2 = new MyClass();
assert(c1.var is c2.var);
}
``` | |||
April 13, 2023 Genel » Re: LookUp ve AA | |||
|---|---|---|---|
| |||
...Tarih.AY;
date.month.write("/");
assert(date["month"] != Tarih.AY);
assert(date["month"].type == typeid... | |||
Copyright © 1999-2021 by the D Language Foundation