<div dir="ltr">Its probably better to use a Boolean variable <span style="font-family:menlo;font-size:11px">close_file</span> to &quot;cancel&quot; it, rather than change the entire language.<div><br></div><div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(112,61,170)"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)">func</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> openFile(kind: </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">String</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">) -&gt; </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">UnsafeMutablePointer</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">&lt;</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">FILE</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">&gt;? {</span></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">    </span><br class="inbox-m_-2787835486084214938webkit-block-placeholder gmail_msg"></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">    </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)">var</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures"> file = </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(61,29,129)">fopen</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">(</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">&quot;MyFile.txt&quot;</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">, </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)">&quot;r&quot;</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">)</span></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">    var close_file = true</span></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">    </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)">defer</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures"> { if close_file { </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(61,29,129)">fclose</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">(file) }} // &lt;--</span></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">    </span><br class="inbox-m_-2787835486084214938webkit-block-placeholder gmail_msg"></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">    </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)">if</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">fileIsNotValid</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">(file) { </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)">return</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)">nil</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures"> }</span></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures"></span><br class="gmail_msg"></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">    </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)">if</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">fileDoesNotContainsData</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">(file, kind) { </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)">return</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)">nil</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures"> }</span></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">    </span><br class="inbox-m_-2787835486084214938webkit-block-placeholder gmail_msg"></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">    </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)">if</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)">fileDataOutOfDate</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">(file) { </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)">return</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures"> </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)">nil</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures"> }</span></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">    </span><br class="inbox-m_-2787835486084214938webkit-block-placeholder gmail_msg"></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(0,132,0)"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">    </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">// Prevent the deferred handler from closing the file</span></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">   </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">close_file = false // &lt;--</span></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)"><br class="gmail_msg"></span></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">    </span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)">return</span><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures"> file</span></div><div class="gmail_msg" style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span class="gmail_msg" style="font-variant-ligatures:no-common-ligatures">}</span></div></div><div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jan 7, 2017 at 1:20 PM Rien via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg">Is there any interest in a proposal to introduce a named defer statement that can be cancelled?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Lately I find myself writing this kind of code:</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(112,61,170)" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">func</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000" class="gmail_msg"> openFile(kind: </span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">String</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000" class="gmail_msg">) -&gt; </span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">UnsafeMutablePointer</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000" class="gmail_msg">&lt;</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">FILE</span><span style="font-variant-ligatures:no-common-ligatures;color:#000000" class="gmail_msg">&gt;? {</span></div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><br class="m_-2787835486084214938webkit-block-placeholder gmail_msg"></p><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">var</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> file = </span><span style="font-variant-ligatures:no-common-ligatures;color:#3d1d81" class="gmail_msg">fopen</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">(</span><span style="font-variant-ligatures:no-common-ligatures;color:#d12f1b" class="gmail_msg">&quot;MyFile.txt&quot;</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">, </span><span style="font-variant-ligatures:no-common-ligatures;color:#d12f1b" class="gmail_msg">&quot;r&quot;</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">)</span></div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><br class="m_-2787835486084214938webkit-block-placeholder gmail_msg"></p><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">var</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> closeFile = </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">true</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg"><br class="gmail_msg"></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">defer</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> { </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">if</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> closeFile { </span><span style="font-variant-ligatures:no-common-ligatures;color:#3d1d81" class="gmail_msg">fclose</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">(file) } }</span></div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><br class="m_-2787835486084214938webkit-block-placeholder gmail_msg"></p><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">if</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#31595d" class="gmail_msg">fileIsNotValid</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">(file) { </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">return</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">nil</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> }</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"></span><br class="gmail_msg"></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">if</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#31595d" class="gmail_msg">fileDoesNotContainsData</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">(file, kind) { </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">return</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">nil</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> }</span></div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><br class="m_-2787835486084214938webkit-block-placeholder gmail_msg"></p><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">if</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#31595d" class="gmail_msg">fileDataOutOfDate</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">(file) { </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">return</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">nil</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> }</span></div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><br class="m_-2787835486084214938webkit-block-placeholder gmail_msg"></p><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,132,0)" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures;color:#000000" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">// Prevent the deferred handler from closing the file</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    closeFile = </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">false</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg"><br class="gmail_msg"></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures;color:#bb2ca2" class="gmail_msg">return</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> file</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">}</span></div></div><div class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"><br class="gmail_msg"></span></div><div class="gmail_msg">Which imo would be much cleaner if we were able to write:</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(112,61,170)" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg">func</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)" class="gmail_msg"> openFile(kind: </span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">String</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)" class="gmail_msg">) -&gt; </span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">UnsafeMutablePointer</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)" class="gmail_msg">&lt;</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">FILE</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)" class="gmail_msg">&gt;? {</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><br class="m_-2787835486084214938webkit-block-placeholder gmail_msg"></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg">var</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> file = </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(61,29,129)" class="gmail_msg">fopen</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">(</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)" class="gmail_msg">&quot;MyFile.txt&quot;</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">, </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(209,47,27)" class="gmail_msg">&quot;r&quot;</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    CLOSE_FILE: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg">defer</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> { </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(61,29,129)" class="gmail_msg">fclose</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">(file) }</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><br class="m_-2787835486084214938webkit-block-placeholder gmail_msg"></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg">if</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)" class="gmail_msg">fileIsNotValid</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">(file) { </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg">return</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg">nil</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> }</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"></span><br class="gmail_msg"></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg">if</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)" class="gmail_msg">fileDoesNotContainsData</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">(file, kind) { </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg">return</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg">nil</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> }</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><br class="m_-2787835486084214938webkit-block-placeholder gmail_msg"></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg">if</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(49,89,93)" class="gmail_msg">fileDataOutOfDate</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">(file) { </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg">return</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg">nil</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> }</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><br class="m_-2787835486084214938webkit-block-placeholder gmail_msg"></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,132,0)" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">// Prevent the deferred handler from closing the file</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><span style="color:rgb(187,44,162)" class="gmail_msg">cancel</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> CLOSE_FILE</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg"><br class="gmail_msg"></span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">    </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(187,44,162)" class="gmail_msg">return</span><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"> file</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg">}</span></div></div><div class="gmail_msg"><span style="font-variant-ligatures:no-common-ligatures" class="gmail_msg"><br class="gmail_msg"></span></div><div class="gmail_msg">Regards,<br class="gmail_msg">Rien<br class="gmail_msg"><br class="gmail_msg">Site: <a href="http://balancingrock.nl" class="gmail_msg" target="_blank">http://balancingrock.nl</a><br class="gmail_msg">Blog: <a href="http://swiftrien.blogspot.com" class="gmail_msg" target="_blank">http://swiftrien.blogspot.com</a><br class="gmail_msg">Github: <a href="http://github.com/Swiftrien" class="gmail_msg" target="_blank">http://github.com/Swiftrien</a><br class="gmail_msg">Project: <a href="http://swiftfire.nl" class="gmail_msg" target="_blank">http://swiftfire.nl</a><br class="gmail_msg"></div></div>_______________________________________________<br class="gmail_msg">
swift-evolution mailing list<br class="gmail_msg">
<a href="mailto:swift-evolution@swift.org" class="gmail_msg" target="_blank">swift-evolution@swift.org</a><br class="gmail_msg">
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class="gmail_msg">
</blockquote></div></div></div>