Usability of "allMembers and derivedMembers traits now only return visible symbols"
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Tue Aug 30 23:39:47 PDT 2016
On 2016-08-31 01:01, Andrej Mitrovic via Digitalmars-d wrote:
> This is such a bizarre workaround to be listed in the changelog since
> mixing in non-mixin templates is not an official feature (am I
> wrong?).
Yes. Originally one could not use the "mixin" keyword in front of a
template. There was no difference between mixin templates and non-mixin
templates, on the declaration site. Later the language was changed to
allow to put "mixin" in front of a template. That restricted all mixin
templates to only be used as mixin templates. It's still possible to
mixin non-mixin templates, most likely to avoid breaking existing code.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list