November 19, 2021 Announce » Re: dmt: Python-like indentation in D programming language | |||
|---|---|---|---|
| |||
...function or that:
```d
template Foo(T):
alias Foo = T
```
Foo in this case was... | |||
November 19, 2021 Learn » Nice example for operator overload resulting in readable linear algebra expressions | |||
|---|---|---|---|
| |||
...it a little I just modified the alias this example: ``` #!/usr/bin/env rdmd struct... | |||
November 19, 2021 Issues » [Issue 22526] New: Strange type error for function pointer that references its own container | |||
|---|---|---|---|
| |||
...com
Reporter: andy.pj.hanson@gmail.com
```
alias Fn(T) = void function(FnContainer!T);
void... | |||
November 18, 2021 General » Re: Is there an intention to 'finish' D2? | |||
|---|---|---|---|
| |||
...frontend, and start removing things, like class alias this, shared, and (why not) start thinking... | |||
November 18, 2021 Learn » writeln the struct from the alis this Example from the home page | |||
|---|---|---|---|
| |||
...p;
// Forward all undefined symbols to p
alias p this;
double dot(Point rhs)
{
return... | |||
November 18, 2021 Issues » [Issue 22521] New: [CTFE] std.experimental.allocator.make and dispose are not CTFEable. | |||
|---|---|---|---|
| |||
...take a custom allocator as a template alias parameter, we will solve this issue. PoC... | |||
November 18, 2021 Issues » [Issue 20809] return statement might access memory from destructed temporary | |||
|---|---|---|---|
| |||
...import std;
int foo()
{
return refCounted(2); //(alias this) .refCountedPayload has ref return
}
void main... | |||
November 17, 2021 Learn » Re: Error: template instance does not match template declaration | |||
|---|---|---|---|
| |||
...An alias to a symbol, type, or value. This is specified using the keyword `alias... | |||
November 17, 2021 General » Re: std.sumtype needs implicit conversion to reach its full potential. | |||
|---|---|---|---|
| |||
...reading... >_< And D just hates implicit conversions(`alias this` considered bad and so on...) so... ; _ ; | |||
November 16, 2021 General » std.sumtype needs implicit conversion to reach its full potential. | |||
|---|---|---|---|
| |||
...struct any {}
}
alias typeOrAny(T) = sumtype!(T, Mocker.any);
template expectationMethod(alias fn)
{
alias ExpectedParams... | |||
Copyright © 1999-2021 by the D Language Foundation