January 22, 2022 Learn » Re: forward tuple arg to local variable + dtor | |||
|---|---|---|---|
| |||
...apply(alias fn)
{
private auto impl(Args...)(Args args)
{
@property auto ref elm(alias param... | |||
January 22, 2022 Learn » Re: forward tuple arg to local variable + dtor | |||
|---|---|---|---|
| |||
...multiple ref counted objects:
public auto apply(alias fn, Args...)(scope auto ref Args args... | |||
January 22, 2022 Learn » Re: forward tuple arg to local variable + dtor | |||
|---|---|---|---|
| |||
...as I understand it like the following:
alias tup = AliasSeq!(Foo, Foo);
static foreach(Type... | |||
January 22, 2022 Learn » Re: forward tuple arg to local variable + dtor | |||
|---|---|---|---|
| |||
...main(){
{
AliasSeq!(Foo, Foo) tup;
static foreach(alias x; tup)
writeln("check(", x.i, "): ", cast... | |||
January 22, 2022 Learn » forward tuple arg to local variable + dtor | |||
|---|---|---|---|
| |||
...Args params = forward!args;
writeln("params initialized");
alias foo = params[0];
writeln("check(", foo.i... | |||
January 22, 2022 Issues » [Issue 22697] New: Segfault when accessing a recursive lambda declared inside a function generated with a mixin template | |||
|---|---|---|---|
| |||
...mix(alias fun) {
auto foo()
{
return fun;
}
}
void main()
{
mixin mix!((size_t n) {
alias... | |||
January 22, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
...import std.exception : enforce;
import std.meta : Alias;
debug { import std; }
Random rnd;
static this... | |||
January 22, 2022 Issues » [Issue 22674] ImportC: compatible types declared in different translation units are not treated equivalent in D. | |||
|---|---|---|---|
| |||
...the duplicate declarations: import maker; import freer; alias FooRef = maker.FooRef; extern (C) void free... | |||
January 21, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
...000_001;
alias iotaValues = Alias!"iota(iotaStartNum, iotaStartNum + recordsNeeded).enumerate";
alias recordValues = Alias!"iota(valuesPerRecord... | |||
January 21, 2022 Announce » D Language Quarterly Meeting Summary for January 2021 | |||
|---|---|---|---|
| |||
...id=13162 ### Me I brought up an `alias this` issue that had come up in... | |||
Copyright © 1999-2021 by the D Language Foundation