On Saturday, 19 December 2020 at 07:41:09 UTC, SealabJaster wrote:
...
The nesting behavior is indeed intentional:
https://dlang.org/spec/template.html#implicit-nesting
But I still assume the assignment to a function is also a bug, so
I'll file that if it hasn't been already (unless for som
On Thursday, 17 December 2020 at 22:06:00 UTC, SealabJaster wrote:
...
Well, at least I understand why the context pointer exists now.
If you were to add a `pragma(msg, __FUNCTION__)` into either of
the templated functions, you'd get the following output.
```
example.C.doShizz!(a).doShizz
e
On Thursday, 17 December 2020 at 21:10:20 UTC, Q. Schroll wrote:
I don't have an answer, but aliasing non-static fields outside
the struct isn't something one does often. This is probably a
bug.
At least it wasn't just me overlooking something.
If it is a bug, I wonder which part of it is bug
On Saturday, 12 December 2020 at 01:02:56 UTC, SealabJaster wrote:
Please see this shortened snippet: https://godbolt.org/z/j8f3x5
I've ran into annoyances before when using aliases to member
fields, but something subtle like this was rather annoying to
figure out.
Why does the compiler feel
Please see this shortened snippet: https://godbolt.org/z/j8f3x5
I've ran into annoyances before when using aliases to member
fields, but something subtle like this was rather annoying to
figure out.
Why does the compiler feel the need to embed a context pointer
anytime you provide an to alia