<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Ah, of course, you are right. Mixing both levels (file and class private) isn't possible with the current model, it's either one or the other.</div><div><br></div><div>Feeling a bit silly for not thinking of that myself and apologies to Ilya and you all for being a little thick-headed...</div><div><br></div><div>-Thorsten</div><div><br>Am 26.01.2016 um 05:40 schrieb Rob Mayoff via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt;:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 25, 2016 at 10:37 PM, Nate Birkholz via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><span style="color:rgb(80,0,80)">&gt;&gt; Note that moving a private class to its own file to make its privates more private does not work. Now I have to make the formerly-private class an internal class, so I'm not sending the first message anymore.</span><br><span style="color:rgb(80,0,80)">&gt;</span><br><div class=""><div class="h5">
&gt; Why do you have to make it internal then? I'm confused.<br></div></div><div><br></div><span style="font-size:12.8px">In Scheduler.swift, I have public (or internal) class Scheduler, and it uses private class JobRecord, also in Scheduler.swift.</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I want to make some of JobRecord's members private to JobRecord. Right now, the only way to do that is to move JobRecord to a separate file, say JobRecord.swift, so that its privates become "more private" (since class JobRecord is the only thing in JobRecord.swift).</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">But in order for JobRecord to be visible to Scheduler, I now have to change "private class JobRecord" to "internal class JobRecord". The message-to-future-Rob that JobRecord is only intended for use by Scheduler.swift is lost (or at any rate its accuracy is no longer enforced by the compiler).</div><div class="" style="font-size:12.8px"></div><div><br></div></div></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>