<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&#39;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&#39;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&#39;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 &quot;more private&quot; (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 &quot;private class JobRecord&quot; to &quot;internal class JobRecord&quot;. 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>