i am missing some protection level, which can be called "classprivate" or "structprivate" / "enumprivate" (names could be better). here is an example:
--- file Some.swift --- class Some { private func foo() { bar() // error: inaccessible due to 'private' } } --- file Some+Bar.swift --- extension Some { private func bar() { foo() // error: inaccessible due to 'private' } } 1) i want to have this extension in a different file (to keep file sizes manageable). 2) i can't use either private or fileprivate due to compilation errors 3) i do not want to have neither "foo" nor "bar" public 4) "internal" doesn't help as "foo" and "bar" will be available to my app (which is unwanted). is there some "classprivate" to help here? if not so far, shall there be one? opinions? Mike
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution