Re: [swift-users] NSRange error in docker

2017-09-25 Thread Людвиг Вальда Васкес via swift-users
Ah, seems i’m wrong in my conclusions, methods and properties in those extensions are marked as public, which makes them accessible from outside of Foundation module. Sorry for confusing. Best regards, Ludwig > 26 сент. 2017 г., в 1:36, Людвиг Вальда Васкес via swift-users > написал(а): > >

Re: [swift-users] NSRange error in docker

2017-09-25 Thread Людвиг Вальда Васкес via swift-users
I’m not sure. As far as i know only extension which declare a protocol conformance for a type will have same visibility as type they implement it for. But if you simply extend a type, this extension will be internal by default. Best regards, Ludwig > 26 сент. 2017 г., в 1:28, Jordan Rose напис

Re: [swift-users] NSRange error in docker

2017-09-25 Thread Jordan Rose via swift-users
That's not how extensions in Swift work. All of those functions are definitely available. Barbara, can you post your source somewhere? And can you check that your Docker image is actually new enough, using `swift --version`? (The Swift project doesn't publish an official Docker image, so unless

Re: [swift-users] NSRange error in docker

2017-09-25 Thread Людвиг Вальда Васкес via swift-users
Interesting, those extensions aren't public for some reason which prevents their usage from outside of Foundation module. I’m curious if that was intentional due to unfinished work or something or they just forgot to export them. Best regards, Ludwig > 25 сент. 2017 г., в 16:40, Barbara Reicha