Making alias of a struct field needs "this".
Basile B.
b2.temp at gmx.com
Tue Jun 2 09:08:45 UTC 2020
On Tuesday, 2 June 2020 at 09:07:08 UTC, Basile B. wrote:
> On Tuesday, 2 June 2020 at 08:56:13 UTC, realhet wrote:
>> [...]
>
> There's a language rule, expressions cant be aliased, however D
> has a bug, some expressions
> that look like type can be aliased, then when you use them you
> have an error about 'this' but in first place here you should
> really have an error saying 'cant alias expression'.
Note that most of the time attempts to alias expressions is
detected. This is a particular bug, a "corner case".
More information about the Digitalmars-d-learn
mailing list