[swift-users] Class extension issues (Xcode 7.3 (7D175))
zh ao
owenzx at gmail.com
Tue Jun 7 19:27:03 CDT 2016
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?
Zhaoxin
On Wed, Jun 8, 2016 at 7:48 AM, Victor Leong via swift-users <
swift-users at swift.org> wrote:
> Hey guys,
>
> I'm starting to see problems related struct namespacing with extensions.
> For example:
>
> I have the following definition in file: "aaa.swift":
> public struct aaa {
> public struct bbb {
> public struct ccc{
> ...
> }
> }
> }
>
> I have a second find: "bbb.swift" that tries to use:
> aaa.bbb.ccc but it would say ccc is not a member of aaa.bbb.
>
> If I move the code to file "aaa.swift" then the compile would work.
>
> What I noticed is that this isn't deterministic either, it would happen
> for only a few namespaces in certain files.
>
> Am I doing something wrong?
>
> Thanks,
> *Victor Leong *|* Software Developer*
> victor.leong at visiercorp.com
>
>
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160608/fcb13f2b/attachment.html>
More information about the swift-users
mailing list