[swift-evolution] SE-0025: Scoped Access Level, next steps

Jordan Rose jordan_rose at apple.com
Wed Mar 16 21:42:36 CDT 2016


> On Mar 16, 2016, at 19:02 , Ilya Belenkiy via swift-evolution <swift-evolution at swift.org> wrote:
> 
> The access level discussed in the proposal already hides the members from nested types.

Really? In the following code, the nested type and the local method are definitely in the same lexical scope by my understanding of "lexical scope":

struct Foo {
local static func foo() {}
struct Nested {
	init() {
		Foo.foo()
	}
}
}

I guess this is something else that would need to be clarified if/when the proposal returns to review.

Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160316/d371dc5d/attachment.html>


More information about the swift-evolution mailing list