alias this question

Olli Aalto oaalto at gmail.com
Sun Feb 13 08:30:14 PST 2011


I encountered a problem with alias this, when the aliased member is 
private. I'm using the latest dmd2. It reports the follwing:
src\main.d(14): Error: struct K.K member s is not accessible

If I change the private modifier on the s member to public it works.

Is this as intended, or a bug?

O.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: main.d
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110213/814ded52/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: S.d
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110213/814ded52/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: K.d
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110213/814ded52/attachment-0002.ksh>


More information about the Digitalmars-d mailing list