[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] SF.net SVN: supercollider:[8096] trunk/build/SCClassLibrary/Common/Math/ Number.sc
Revision: 8096
http://supercollider.svn.sourceforge.net/supercollider/?rev=8096&view=rev
Author: jamshark70
Date: 2008-12-11 03:35:54 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
Bugfix: Number:for did not pass the second argument that is passed in Integer:for.
Modified Paths:
--------------
trunk/build/SCClassLibrary/Common/Math/Number.sc
Modified: trunk/build/SCClassLibrary/Common/Math/Number.sc
===================================================================
--- trunk/build/SCClassLibrary/Common/Math/Number.sc 2008-12-10 14:49:06 UTC (rev 8095)
+++ trunk/build/SCClassLibrary/Common/Math/Number.sc 2008-12-11 03:35:54 UTC (rev 8096)
@@ -33,9 +33,9 @@
// iteration
for { arg endValue, function;
- var i;
+ var i, j = 0;
i = this;
- while ({ i <= endValue }, { function.value(i); i = i + 1; });
+ while ({ i <= endValue }, { function.value(i, j); i = i + 1; j = j + 1 });
}
forBy { arg endValue, stepValue, function;
var i, j=0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/