March 31, 2022 Issues » [Issue 22926] importC: cast to D type alias in array length gives syntax error | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=22926 --- Comment #4 from Walter Bright <bugzilla... | |||
March 30, 2022 Learn » Re: How to create delegates with an independent scope? | |||
|---|---|---|---|
| |||
You can also use `static foreach` and `alias`, although that will restrict that code to... | |||
March 30, 2022 Learn » Re: How to unit-test behavior under "version"? | |||
|---|---|---|---|
| |||
...writeln("no foo");
}
version(foo)
alias f = fImpl!true;
else
alias f = fImpl!false;
unittest... | |||
March 30, 2022 Learn » Re: How to create delegates with an independent scope? | |||
|---|---|---|---|
| |||
...two delegates :)
```d
import std;
void main(){
alias DelegateT = string delegate();
// An array of delegates... | |||
March 30, 2022 Learn » How to create delegates with an independent scope? | |||
|---|---|---|---|
| |||
...example:
```d
import std.stdio;
void main()
{
alias DelegateT = string delegate();
// An array of delegates... | |||
March 30, 2022 General » Re: unique ownership + unlimited safe generational references | |||
|---|---|---|---|
| |||
...But if the assumption that most programs alias data (copying a pointer) more often than... | |||
March 29, 2022 Learn » How do you properly use immutable on class members? | |||
|---|---|---|---|
| |||
...that typing elsewhere. I could use an alias called `Axioms` I guess. Every time I... | |||
March 29, 2022 Issues » [Issue 22926] importC: cast to D type alias in array length gives syntax error | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=22926 --- Comment #3 from duser@neet.fi... | |||
March 27, 2022 Issues » [Issue 22926] importC: cast to D type alias in array length gives syntax error | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=22926 Walter Bright <bugzilla@digitalmars.com> changed... | |||
March 27, 2022 Issues » [Issue 16666] type inside 'static if' can't be used before import | |||
|---|---|---|---|
| |||
...config.d
static if (1)
alias my_long = long;
else
alias my_long = long;
main... | |||
Copyright © 1999-2021 by the D Language Foundation