January 20, 2022 Issues » [Issue 22693] New: Lambda accepts auto parameter but fails on instantiation | |||
|---|---|---|---|
| |||
...lsferreira.net
The compiler accepts the following:
```
alias func = (auto c) {};
```
But when instantiation `func... | |||
January 20, 2022 Learn » Re: How to alias | |||
|---|---|---|---|
| |||
...So you don't need to use alias. If you want it the other way... | |||
January 20, 2022 General » Re: immutable(ubyte)[] to receive | |||
|---|---|---|---|
| |||
...Phobos bug.
```
import std.variant;
void main() {
alias A = immutable(ubyte)[];
auto a = Variant(immutable... | |||
January 20, 2022 General » Re: immutable(ubyte)[] to receive | |||
|---|---|---|---|
| |||
...wait, I just noticed Buffer is an alias to an immutable array. Ignore what I... | |||
January 20, 2022 General » immutable(ubyte)[] to receive | |||
|---|---|---|---|
| |||
...std.variant : Variant; import std.process : thisThreadID; alias Buffer = immutable(ubyte)[]; void pros2(string name... | |||
January 20, 2022 Learn » Re: Using getSymbolsByUDA in a static foreach loop | |||
|---|---|---|---|
| |||
...you __traits(getMember, Manager, memberName) to actually get the alias you can pass to getAttributes. | |||
January 19, 2022 Learn » Re: number ranges | |||
|---|---|---|---|
| |||
...enum b = 7; // ASCII 70: F
alias type = char;
alias test = inclusiveRange;
void main() {
string... | |||
January 19, 2022 Learn » Re: alias and __VERSION__ condition doesn't play well | |||
|---|---|---|---|
| |||
...Foo{
Bar.B b;
static if(true)
alias F = int;
}
class Bar{
Foo.F f... | |||
January 18, 2022 Learn » Re: alias and __VERSION__ condition doesn't play well | |||
|---|---|---|---|
| |||
Has nothing to do with `__VERSION__`: https://run.dlang.io/is/pa8lDy That does seem... | |||
January 18, 2022 General » Versionable default parameters | |||
|---|---|---|---|
| |||
...declarations to an alias
static if (is(typeof(locusFunc) Params == __parameters))
alias Locus = Params;
else... | |||
Copyright © 1999-2021 by the D Language Foundation