<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Is this a correct useage of namespace? As far as I know, there is not a solution for namespace in Swift. Or should I say that Swift is not support namespace?</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Zhaoxin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 8, 2016 at 7:48 AM, Victor Leong via swift-users <span dir="ltr"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey guys, <div><br></div><div>I'm starting to see problems related struct namespacing with extensions. For example:</div><div><br></div><div>I have the following definition in file: "aaa.swift":</div><div>public struct aaa {</div><div> public struct bbb {</div><div> public struct ccc{</div><div> ...</div><div> }</div><div> }</div><div>}</div><div><br></div><div>I have a second find: "bbb.swift" that tries to use:</div><div>aaa.bbb.ccc but it would say ccc is not a member of aaa.bbb.</div><div><br></div><div>If I move the code to file "aaa.swift" then the compile would work.</div><div><br></div><div>What I noticed is that this isn't deterministic either, it would happen for only a few namespaces in certain files.</div><div><br></div><div>Am I doing something wrong?<br clear="all"><div><br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><span style="font-size:12.8px">Thanks,</span></div><div><b style="font-size:12.8px">Victor Leong </b><span style="font-size:12.8px">|</span><b style="font-size:12.8px"> Software Developer</b><br></div><div><a href="mailto:victor.leong@visiercorp.com" target="_blank">victor.leong@visiercorp.com</a></div><div><br></div></div></div></div></div></div></div>
</div></div>
<br>_______________________________________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br>
<br></blockquote></div><br></div>