[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] SF.net SVN: supercollider: [7372] trunk/build/Help/Language/switch.htm



Revision: 7372
          http://svn.sourceforge.net/supercollider/?rev=7372&view=rev
Author:   cruxxial
Date:     2008-02-23 07:39:23 -0800 (Sat, 23 Feb 2008)

Log Message:
-----------
clarifying the example's output

Modified Paths:
--------------
    trunk/build/Help/Language/switch.htm

Modified: trunk/build/Help/Language/switch.htm
===================================================================
--- trunk/build/Help/Language/switch.htm	2008-02-23 15:36:26 UTC (rev 7371)
+++ trunk/build/Help/Language/switch.htm	2008-02-23 15:39:23 UTC (rev 7372)
@@ -5,16 +5,14 @@
 <meta http-equiv="Content-Style-Type" content="text/css">
 <title></title>
 <meta name="Generator" content="Cocoa HTML Writer">
-<meta name="CocoaVersion" content="824.42">
+<meta name="CocoaVersion" content="824.44">
 <style type="text/css">
-p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica; color: #000000}
+p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica}
 p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
-p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #000000}
+p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
 p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
-p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000; min-height: 12.0px}
-p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000}
-p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #bf0000}
-p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #606060}
+p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #952e14}
+p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #606060}
 span.s1 {color: #606060}
 span.s2 {color: #000000}
 span.Apple-tab-span {white-space:pre}
@@ -23,21 +21,23 @@
 <body>
 <p class="p1"><b>switch</b></p>
 <p class="p2"><br></p>
-<p class="p3">object.switch( test1, trueFunc1, test2, trueFunc2 ... testN, trueFuncN, defaultFunc</p>
+<p class="p3">object.switch( test1, trueFunc1, test2, trueFunc2 ... testN, trueFuncN, defaultFunc )</p>
 <p class="p2"><br></p>
 <p class="p4">(</p>
-<p class="p5"><br></p>
-<p class="p6">4.switch(</p>
-<p class="p6"><span class="Apple-tab-span">	</span>0, { <span class="s1">"was 0"</span> },</p>
-<p class="p6"><span class="Apple-tab-span">	</span>1, { <span class="s1">"was 1"</span> },</p>
-<p class="p7"><span class="s2"><span class="Apple-tab-span">	</span></span>// test cases are evaluated</p>
-<p class="p6"><span class="Apple-tab-span">	</span>{ 1 + 1 }, { <span class="s1">"was 2"</span> },</p>
-<p class="p6"><span class="Apple-tab-span">	</span>4, { <span class="s1">"was 4"</span> },</p>
-<p class="p8"><span class="s2"><span class="Apple-tab-span">	</span>4, { </span>"flow has stopped, we don't get here unlike traditional switch implementations"<span class="s2"> },</span></p>
-<p class="p7"><span class="s2"><span class="Apple-tab-span">	</span></span>// last function is the default</p>
-<p class="p8"><span class="s2"><span class="Apple-tab-span">	</span>{ </span>"if the answer wasn't four we would have ended up here, the default"<span class="s2"> }</span></p>
-<p class="p6">).postln</p>
-<p class="p5"><br></p>
+<p class="p2"><br></p>
+<p class="p4">a = 4.switch(</p>
+<p class="p4"><span class="Apple-tab-span">	</span>0, { <span class="s1">"was 0"</span> },</p>
+<p class="p4"><span class="Apple-tab-span">	</span>1, { <span class="s1">"was 1"</span> },</p>
+<p class="p5"><span class="s2"><span class="Apple-tab-span">	</span></span>// test cases are evaluated</p>
+<p class="p4"><span class="Apple-tab-span">	</span>{ 1 + 1 }, { <span class="s1">"was 2"</span> },</p>
+<p class="p4"><span class="Apple-tab-span">	</span>4, { <span class="s1">"was 4"</span> },</p>
+<p class="p6"><span class="s2"><span class="Apple-tab-span">	</span>4, { </span>"flow has stopped, we don't get here unlike traditional switch implementations"<span class="s2"> },</span></p>
+<p class="p5"><span class="s2"><span class="Apple-tab-span">	</span></span>// last function is the default</p>
+<p class="p6"><span class="s2"><span class="Apple-tab-span">	</span>{ </span>"if the answer wasn't four we would have ended up here, the default"<span class="s2"> }</span></p>
+<p class="p4">);</p>
+<p class="p2"><br></p>
+<p class="p4">a</p>
+<p class="p2"><br></p>
 <p class="p4">)</p>
 <p class="p2"><br></p>
 <p class="p3">switch returns the result of the trueFunc</p>


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.