<div dir="ltr">Hello list!<div><br></div><div>I just spent a little time scratching my head over these little functions:</div><div><br></div><div><br></div><div><div><span class="" style="white-space:pre">        </span>fun void startRecording() {</div><div><span class="" style="white-space:pre">                </span>&lt;&lt;&lt; &quot;Record! &quot;, index &gt;&gt;&gt;;</div><div><span class="" style="white-space:pre">                </span>true =&gt; lisaLeft.record;</div><div><span class="" style="white-space:pre">                </span>true =&gt; lisaRight.record;</div><div><span class="" style="white-space:pre">        </span>}</div></div><div><br></div><div><div><span class="" style="white-space:pre">        </span>fun void toggle() {</div><div><span class="" style="white-space:pre">                </span>!active =&gt; active;</div><div><span class="" style="white-space:pre">                </span>paintActive();</div><div><span class="" style="white-space:pre">                </span>if (active) {</div><div><span class="" style="white-space:pre">                        </span>startRecording;</div><div><span class="" style="white-space:pre">                </span>}</div><div><span class="" style="white-space:pre">        </span>}</div><div><br></div><div>Everything seemed to be in order, I added a lot of print statements, and could for the life of me figure out why the startRecording function wasn&#39;t executed from toggle(). There was no error message, everything seemed to be in order. Then I peered more closely and saw that I had forgotten to put parenthesis in the function call:</div><div><br></div><div>startRecording();</div><div><br></div><div>After that everything started working. My question is: shouldn&#39;t a function name all by itself result in an error of some kind?</div><div><br></div><div>Cheers,</div><div><br></div><div>Stefan Blixt</div><div><br></div>-- <br>Release me, insect, or I will destroy the Cosmos!
</div></div>