October 10 General » betterC and core.stdc modules; betterC and varargs routines | |||
|---|---|---|---|
| |||
...end(ap);
return rc;
}
extern(C) void main() {
wrap_printf("Foo\n");
}
```
```
$ dmd -betterC stdarg1... | |||
October 10 Issues » [Issue 24804] New: IFTI fails for variadic static array parameter with narrowing conversion on templated length | |||
|---|---|---|---|
| |||
...test(ubyte n)(int[n] a...) {}
void main()
{
test(1, 2, 3); // error
}
---
The error... | |||
October 10 Issues » [Issue 24798] Under some circumstances, the compiler destroys the same object more than once | |||
|---|---|---|---|
| |||
...p\n", val, &this);
val = 99;
}
}
void main() {
auto r = makeR();
r.foo();
}
auto makeR... | |||
October 10 Issues » [Issue 24798] std.algorithm.substitute appears to be destroying an already destroyed value | |||
|---|---|---|---|
| |||
...reduced it to
---
import std.range;
void main()
{
static struct S
{
int val;
~this()
{
assert... | |||
October 10 Issues » [Issue 24803] New: __traits(location) is inconsistent with modules | |||
|---|---|---|---|
| |||
...called from.
```
import core.stdc.stdio;
void main()
{
// Error: can only get the location of... | |||
October 09 Issues » [Issue 24802] Wrong error message | |||
|---|---|---|---|
| |||
...The same happens with scope guards:
```
void main()
{
goto x;
scope(exit) {}
x:
}
```
See also... | |||
October 09 General » Re: Template type inference problem | |||
|---|---|---|---|
| |||
...sum,
T.stringof, data);
}
}
import std;
void main()
{
auto arr = [1, 2, 3, 4, 5... | |||
October 09 General » Re: Move Constructor Syntax | |||
|---|---|---|---|
| |||
...I also imagine solving for that issue would equally solve for the main constructor case? | |||
October 08 Learn » Re: Why is this not allowed? | |||
|---|---|---|---|
| |||
...hp; }
struct EntityDef
{
mixin Foo stats;
}
void main()
{
auto num = EntityDef(41);
assert(num.stats... | |||
October 08 General » Re: One of the thing I like in D | |||
|---|---|---|---|
| |||
But why pointers?
```d
void @safe main()
{
auto a = 0;
auto b = 0;
auto c... | |||
Copyright © 1999-2021 by the D Language Foundation