May 07, 2022 Learn » Re: Compile delegate with enum into proper function? | |||
|---|---|---|---|
| |||
Worth noting that you *can* write ```d alias foo = partial!(foo, a); ``` ...which will add... | |||
May 07, 2022 Learn » Re: Compile delegate with enum into proper function? | |||
|---|---|---|---|
| |||
...alias foo2 = foo!a; ``` The downside is that you wouldn't be able to `alias... | |||
May 07, 2022 Genel » Re: Inclusive Range for D v2 | |||
|---|---|---|---|
| |||
...writefln!"[... %(%.12f, %)]: %s"(r.length);
}
void main() {
alias testType = float; // real & double test-ok
testType... | |||
May 07, 2022 Learn » Re: Compile delegate with enum into proper function? | |||
|---|---|---|---|
| |||
...std.functional: partial; enum int a = 1; alias foo2 = partial!(foo, a); ``` Or, if `a... | |||
May 07, 2022 Genel » Re: Inclusive Range for D v2 | |||
|---|---|---|---|
| |||
...daha güvenilir bir hale getirmiş olabiliriz: ```d alias ir = inclusiveRange; auto inclusiveRange(T = int)(T... | |||
May 06, 2022 Learn » Re: How to unpack template parameters,Or how to forward parameters? | |||
|---|---|---|---|
| |||
...alias arr)
if(isStaticArray!(typeof(arr))){
auto get(size_t I)(){
return arr[I];
}
alias... | |||
May 06, 2022 Learn » How to unpack template parameters,Or how to forward parameters? | |||
|---|---|---|---|
| |||
...write a forwarding function?
```d
void ff(alias g,int...I)(int[2]k){
g... | |||
May 05, 2022 Learn » Unittests being broken | |||
|---|---|---|---|
| |||
Some code I have: ```d alias Operator = dstring function(dstring input); //List of all operations... | |||
May 04, 2022 Learn » Re: How to use destroy and free. | |||
|---|---|---|---|
| |||
...T* payload;
ref T get() { return *payload; }
alias get this;
~this() {
import core.memory : GC... | |||
May 04, 2022 Issues » [Issue 23089] New: Linkage-related ICE regression in v2.100.0-rc.1 | |||
|---|---|---|---|
| |||
...v2.100.0-rc.1+: ``` extern(System): alias F = void function(int); F f; ``` Output... | |||
Copyright © 1999-2021 by the D Language Foundation