<div dir="ltr">Ugh, of course there is stuff like &quot;look at class side&quot; ;-)<div><br></div><div><br></div><div><br></div><div>Best.</div><div>Karl</div><div><br></div><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 4, 2016 at 4:20 PM, Tobias Pape <span dir="ltr">&lt;<a href="mailto:Das.Linux@gmx.de" target="_blank">Das.Linux@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On <a href="tel:04.03.2016" value="+464032016">04.03.2016</a>, at 15:59, karl ramberg &lt;<a href="mailto:karlramberg@gmail.com">karlramberg@gmail.com</a>&gt; wrote:<br>
<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Mar 4, 2016 at 3:25 PM, Bert Freudenberg &lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt; wrote:<br>
&gt; On 03.03.2016, at 23:28, Chris Cunningham &lt;<a href="mailto:cunningham.cb@gmail.com">cunningham.cb@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Mar 3, 2016 at 12:31 PM, karl ramberg &lt;<a href="mailto:karlramberg@gmail.com">karlramberg@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Nice.<br>
&gt;&gt; BTW: there is a lot of empty categories in the Preferences class.<br>
&gt;&gt; We must remove those in a post script or something.<br>
&gt;&gt; Preferences organization removeEmptyCategories<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m not sure how to do it ?<br>
&gt;&gt;<br>
&gt;&gt; Add it in a package preamble ?<br>
&gt;&gt; Does we then need to remove the preamble again ?<br>
&gt;&gt;<br>
&gt;&gt; If I remember right, the preamble (and postlude?) only get run once - when they are first changed.  After that, they are skipped.<br>
&gt;&gt; This means you want to leave them in and not remove them - otherwise a person later on would update from Trunk and just get the latest version - which doesn&#39;t have the preamble - and the work wouldn&#39;t be done.<br>
&gt;&gt;<br>
&gt;&gt; Or am I wrong, and this only happens with Class initialization?<br>
&gt;<br>
&gt; It happens exactly the same as with class initialization:<br>
&gt;<br>
&gt; If the definition (of the script or method) changed, it gets executed.<br>
&gt;<br>
&gt; You cannot rely on it having executed, or it only executing once. It’s better to write it in a way that running it again does no harm.<br>
&gt;<br>
&gt; We can force execution by issuing an update map, but it’s better to avoid that.<br>
&gt;<br>
&gt; For the problem at hand (empty method categories) we also could just add a step to the release builder to ensure all categories are clean.<br>
&gt;<br>
&gt; We could run this for all classes I guess. I don&#39;t see much value in keeping empty method categories around...<br>
&gt;<br>
&gt; Anyone objects ?<br>
<br>
<br>
</span>&quot;look at class side&quot; …<br>
<br>
Best<br>
<span class="HOEnZb"><font color="#888888">        -Tobias<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; Best,<br>
&gt; Karl<br>
&gt;<br>
&gt;<br>
&gt; - Bert -<br>
<br>
<br>
</div></div></blockquote></div><br></div>