September 09 Issues » [Issue 24754] cannot take address of a member array in a ref foreach | |||
|---|---|---|---|
| |||
...address of foo[0]
return f;
}
}
void main() @safe
{
int* p;
{
Foo foo = Foo([1... | |||
September 09 Learn » Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
...else
write(" = ", arg);
}
writeln();
}
```
Used like:
```
void main() {
int a = 5, b = 22;
show(i... | |||
September 09 Issues » [Issue 24754] New: cannot take address of a member array in a ref foreach | |||
|---|---|---|---|
| |||
...foreach(ref e; foo)
f = &e;
}
}
void main()
{
Foo foo;
foo.foobar();
}
```
Shouldn't yield... | |||
September 09 Learn » Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
...string expr) = `writeln(q"(` ~ expr ~ `)", " == ", ` ~ expr ~ `);`;
void main()
{
import std.stdio;
mixin(show!"1 + 2... | |||
September 08 Learn » Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
...what it really was is lost.
}
void main()
{
show!(1 + 2);
//I want this to... | |||
September 08 Issues » [Issue 24753] New: run.dlang.io throws exception for 'all dmd compilers' and -betterC argument | |||
|---|---|---|---|
| |||
...0x40968c] ??:? [0x40965c] ??:? [0x429e6a] ??:? [0x42957b] ??:? [0x41bca2] ??:? [0x419ebb] ??:? [0x475ecb] ??:? [0x475dc7] ??:? [0x475c1d] ??:? [0x420264] ??:? __libc_start_main [0x7fd3a94d383f] ??:? [0x4043b8] -- | |||
September 08 Issues » [Issue 24752] New: betterC memset link errors with template+array | |||
|---|---|---|---|
| |||
...with different values fails } ``` source/bug.d:(.text.main[main]+0x60): undefined reference to `_memset32' -- | |||
September 08 General » Re: Discussion about deprecating @nogc and workarounds | |||
|---|---|---|---|
| |||
...to you if you use -betterC. https://github.com/Project-Sidero/basic_memory/tree/main | |||
September 07 Learn » Pipeline issue | |||
|---|---|---|---|
| |||
...stdout);
scope(exit) wait(pid_final);
}
void main() {
string[][]cmds=[["samtools", "fixmate", "-@", "8", "-m", "-u... | |||
September 08 General » Re: Discussion about deprecating @nogc and workarounds | |||
|---|---|---|---|
| |||
...sidero.base.console;
@safe nothrow @nogc:
void main() {
writeln(add(3, 4)); // 7
}
int add... | |||
Copyright © 1999-2021 by the D Language Foundation