Search

December 08, 2021
Learn »
yes, you do. the alias param passes the abstract idea of the variable instead of...
December 08, 2021
Learn »
It's a CPU simulator and the function needs to operate on half of a...
December 08, 2021
Learn »
[...]

Why not pass the entire struct by ref?


T

-- 
Who told you to swim in...
December 08, 2021
Learn »
It might help if you elaborate a bit more on what exactly you're trying...
December 08, 2021
Learn »
I considered just having a `ref int` parameter, but I didn't think that would...
December 08, 2021
Learn »
...member of a struct as a template alias parameter and I don't really understand...
December 08, 2021
Learn »
...stdio, std.traits, core.lifetime;
auto partiallyApply(alias fun,C...)(C context){
    return &new class...
December 08, 2021
Issues »
...is introducing a dtor
call
    }
}

Two workarounds:

alias AliasSeq(T...) = T;
s = AliasSeq!(0, 1...
December 08, 2021
Issues »
...new B(), null];
    }
}
--- main.d
import issue22579;

alias _ = canon!"";
extern(C) int main() { return 0...
December 08, 2021
Learn »
...interface ICallable
{
    void opCall() const;
}

auto makeDelegate(alias fun, Args...)(auto ref Args args)
{
    return...
264 265 266 267 268 269 270 271 272 273 274
Next ›   Last »