post 2.071 mixin template & import rules

qznc via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 1 00:37:15 PDT 2016


On Friday, 1 July 2016 at 05:42:30 UTC, captaindet wrote:
> it appears that there had been an even more radical change as 
> well with respect to the way mixin templates work. this has not 
> been properly communicated yet. at least i could not find a 
> write-up and a related thread conveyed rather guesswork than 
> knowledge. ( 
> https://forum.dlang.org/post/nl2bgi$2oim$1@digitalmars.com )

The question is: Was it intentional?

Imho, it is weird that template mixin have different behavior 
than modules with respect to import visibility. I don't see a 
reason, why a public import should not be exported.


More information about the Digitalmars-d mailing list