[Bug 49] Protection attributes of mixin instances are applied to a the wrong scope.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 18 06:42:05 PDT 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=49


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com




------- Comment #2 from smjg at iname.com  2006-05-18 08:42 -------
Actually, it isn't clearly defined.  It states:
"Unlike a template instantiation, a template mixin's body is evaluated within
the scope where the mixin appears, not where the template declaration is
defined."

This leaves open the question of where it's access-checked.  There was a
discussion on this a while back:

http://www.digitalmars.com/d/archives/digitalmars/D/bugs/3101.html


-- 




More information about the Digitalmars-d-bugs mailing list