March 29, 2021 Learn » How to declare "type of function, passed as an argument, which should have it's type inferred"? (or if D had an "any" type) | |||
|---|---|---|---|
| |||
...z) {
auto foo = 1;
return foo + 2;
})
Currently...and it gets called inside of "my_func... | |||
March 22, 2021 Issues » [Issue 21745] Closure created in struct constructor passed to class constructor is not heap allocated | |||
|---|---|---|---|
| |||
...struct Foo, the example runs correctly: struct Foo...the bug is somewhere inside el_bin [3... | |||
March 19, 2021 Announce » Re: Silicon Valley D Meetup - March 18, 2021 - "Templates in the D Programming Language" by Ali Çehreli | |||
|---|---|---|---|
| |||
...i = 0; foo(i); assert(i == 42); } There: we injected @trusted code inside a @nogc... | |||
March 14, 2021 Issues » [Issue 21714] New: misparse multi statement mixin in 'with' without brackets: all but the first statement are outside the with | |||
|---|---|---|---|
| |||
...a == Foo.A); } The assert fails, because the "a = Foo.B;" mixin statement inside the... | |||
February 21, 2021 Learn » Re: Foo Foo = new Foo(); | |||
|---|---|---|---|
| |||
...class outside
Foo Foo = new Foo();
// Foo now...Local variables inside functions are a little bit... | |||
February 04, 2021 General » Re: Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2 | |||
|---|---|---|---|
| |||
...int bar;
fun!(i"foo {$bar+5}"); // bar...invisible in the binary.
Inside the compiler, this... | |||
February 04, 2021 General » Re: Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2 | |||
|---|---|---|---|
| |||
...standard uses of symbols inside strings.
This next...syntax.
mixin(iq{ void foo() { is this a... | |||
February 01, 2021 Issues » [Issue 21500] public import in mixin template in module a fails when module b imports a. | |||
|---|---|---|---|
| |||
...by design that imports inside mixins are visible...B
{
mixin baz;
void foo()
{
write(); // oops, calls... | |||
January 29, 2021 General » Re: Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2 | |||
|---|---|---|---|
| |||
...just had to fit inside the ${ }.
${?}(expr) is...query(i"select * from foo where id = ${obj... | |||
January 29, 2021 General » Re: Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2 | |||
|---|---|---|---|
| |||
...the expanded form attempted inside constructors? 2: Is...with interpolated string? `auto foo(T...)(T arg... | |||
Copyright © 1999-2021 by the D Language Foundation