<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"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><span style="color:rgb(80,0,80)">>> 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)">></span><br><div class=""><div class="h5">
> 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>