January 08, 2023 Issues » [Issue 23607] ICE caused by an invalid pipeline involving std.conv.to!string | |||
|---|---|---|---|
| |||
...gmx.com> ---
reduced:
```
template to(T)
{
void to(T)(){}
}
alias comb = to!int.bad!0; ```
-- | |||
January 08, 2023 Learn » Re: what wrong with this alias | |||
|---|---|---|---|
| |||
...algorithm : map, sum; import std.conv : toChars; alias comb = (uint x) => x.toChars.map!"a... | |||
January 08, 2023 Issues » [Issue 23607] New: ICE caused by an invalid pipline involving std.conv.to!string | |||
|---|---|---|---|
| |||
...producing normal error messages ``` import std.conv; alias comb = to!string.bad!""; ``` accoring to run... | |||
January 08, 2023 Learn » Re: what wrong with this alias | |||
|---|---|---|---|
| |||
...providing in your alias. Convert your alias to a lambda expression: ```D alias comb = x... | |||
January 08, 2023 Learn » Re: what wrong with this alias | |||
|---|---|---|---|
| |||
```d
import std;
alias comb = map!q{a - '0'};
void main()
{
auto s = 2234... | |||
January 08, 2023 Learn » what wrong with this alias | |||
|---|---|---|---|
| |||
...works fine.
but if i do an alias
alias comb = to!string.map!q{a... | |||
January 07, 2023 General » My solution to the GC problem | |||
|---|---|---|---|
| |||
...in funcs*/
new
new: identifier
//alias aliasValue is either what alias can accept, or reserved... | |||
January 06, 2023 Learn » Re: Is there a way to enforce UFCS? | |||
|---|---|---|---|
| |||
...T x) {
value = x;
}
T value;
alias opCall this;
@property:
T opCall(T... | |||
January 06, 2023 Learn » Re: Is there a way to enforce UFCS? | |||
|---|---|---|---|
| |||
... value = x.to!T; } T value; alias value this; // [a] getter //@property T... | |||
January 05, 2023 General » Re: Fixing C's Biggest Mistake | |||
|---|---|---|---|
| |||
...struct IntStaticArray(uint T)
{
int[T] data;
alias data this;
}
IntStaticArray!(5) arr;
```
The most... | |||
Copyright © 1999-2021 by the D Language Foundation