April 19, 2022 Learn » Re: Calling template member function? | |||
|---|---|---|---|
| |||
...int x;
void applyToX(alias fn)() {fn(x);}
}
void applyToX_alt(alias fn)(ref X... | |||
April 19, 2022 Learn » Re: Calling template member function? | |||
|---|---|---|---|
| |||
...static void f_new(alias func)()
{
func();
}
}
void f_new(alias func)()
{
func();
}
void f... | |||
April 19, 2022 Learn » Re: Calling template member function? | |||
|---|---|---|---|
| |||
...without one being artificially introduced via an alias parameter. `T!int` is essentially just a... | |||
April 19, 2022 Learn » Calling template member function? | |||
|---|---|---|---|
| |||
...template T(P)
{
static void f_new(alias func)()
{
func();
}
}
void f(FUNC)(FUNC func... | |||
April 18, 2022 Issues » [Issue 23035] New: -preview=rvaluerefparam causes @system function to be @safe | |||
|---|---|---|---|
| |||
...new int(i++); // Force @gc impure @system
}
}
alias T = void function() @system nothrow;
static assert... | |||
April 17, 2022 Issues » [Issue 23033] New: pure functions can allocate values with impure destructors | |||
|---|---|---|---|
| |||
...s == "aaaa"); // string is immutable
globalVar[] = 'b'; // alias escaped through impure destructor
assert(s == "aaaa... | |||
April 17, 2022 Learn » How to use Vector Extensions in an opBinary | |||
|---|---|---|---|
| |||
...the following opBinary using vector extensions.
```dlang
alias MatType = typeof(this);
union{
T[rows*columns... | |||
April 16, 2022 Genel » Re: Üye İşlevlerin Gizli Parametresi | |||
|---|---|---|---|
| |||
...Sıfırdan büyük olmalıydı. (%s)"(i));
});
}
Sonuc tried(alias dg, // <-- İşletilen işlemler
string dosya = __FILE__, // Yararlı... | |||
April 16, 2022 Learn » Re: module search paths | |||
|---|---|---|---|
| |||
...09:41:45 UTC, Mathias LANG wrote:
alias JSONType = JSON_TYPE;
That does not suffice... | |||
April 16, 2022 Learn » how can i mixin a function as struct or class member function | |||
|---|---|---|---|
| |||
...a(int i) {
writeln(i);
}
auto JSFunction(alias F)() if(isSomeFunction!F) {
class S {
public... | |||
Copyright © 1999-2021 by the D Language Foundation