[Issue 13732] Regular templates can use "template this", and they allow any type to be passed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 9 16:13:10 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=13732

--- Comment #4 from Meta <monkeyworks12 at hotmail.com> ---
> Isn't comment 2 what we have already?

Ya, I created this issue because any template allows you to use the `this T`
syntax, and it will accept any type (which seemed like a bug at the time). I
still think it's confusing, and it does nothing in a template that's not nested
in an aggregate, but might not necessarily be behaviour that needs to be fixed.

--


More information about the Digitalmars-d-bugs mailing list