February 09, 2022 Announce » Re: Added copy constructors to "Programming in D" | |||
|---|---|---|---|
| |||
...bother with `in` when we can do: > > alias In(T) = const scope T; > > void test... | |||
February 10, 2022 Announce » Re: Added copy constructors to "Programming in D" | |||
|---|---|---|---|
| |||
...bother with `in` when we can do: alias In(T) = const scope T; void test... | |||
February 09, 2022 Issues » [Issue 22572] Cannot define SumType over immutable struct with Nullable | |||
|---|---|---|---|
| |||
...other) inout { }
}
immutable struct Value
{
CopyConstruct c;
}
alias _ = SumType!Value;
---
The example above produces the... | |||
February 09, 2022 Learn » Re: Filling an array at compile time | |||
|---|---|---|---|
| |||
I would do this. ``` import std; alias Record = Tuple!(string, string, string); static immutable string... | |||
February 09, 2022 Learn » Filling an array at compile time | |||
|---|---|---|---|
| |||
...compile time? ``` import std.csv, std.stdio; alias Record = Tuple!(string, string, string); immutable string... | |||
February 08, 2022 Learn » Re: How to use sets in D? | |||
|---|---|---|---|
| |||
...think I'll just stick with the alias. T -- Who told you to swim in... | |||
February 08, 2022 Learn » Re: How to use sets in D? | |||
|---|---|---|---|
| |||
...will raise a syntax error). So the alias is in fact necessary. T -- Fact is... | |||
February 08, 2022 Learn » Re: How to use sets in D? | |||
|---|---|---|---|
| |||
...0]` or `char[0]`, for example.) The `alias` and the `enum` just make the code... | |||
February 08, 2022 Learn » Re: How to use sets in D? | |||
|---|---|---|---|
| |||
...want to put in your set. The alias is a workaround for a syntactic limitation... | |||
February 06, 2022 General » Re: 80 bit floating point emulator | |||
|---|---|---|---|
| |||
...when would you use this? D has alias, so you all you need is a... | |||
Copyright © 1999-2021 by the D Language Foundation