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

[sc-dev] SF.net SVN: supercollider:[8233] trunk/build/SCClassLibrary/Common/ Collections/Pair.sc



Revision: 8233
          http://supercollider.svn.sourceforge.net/supercollider/?rev=8233&view=rev
Author:   jrhb
Date:     2008-12-21 19:41:09 +0000 (Sun, 21 Dec 2008)

Log Message:
-----------
new method for Pair so that it can be tried at least

Modified Paths:
--------------
    trunk/build/SCClassLibrary/Common/Collections/Pair.sc

Modified: trunk/build/SCClassLibrary/Common/Collections/Pair.sc
===================================================================
--- trunk/build/SCClassLibrary/Common/Collections/Pair.sc	2008-12-21 19:38:54 UTC (rev 8232)
+++ trunk/build/SCClassLibrary/Common/Collections/Pair.sc	2008-12-21 19:41:09 UTC (rev 8233)
@@ -1,5 +1,14 @@
-Pair : Collection { var <>linkDown, <>linkAcross; 
-	// LISP-like two element cells
+// LISP-like two element cells
+
+Pair : Collection { 
+
+	var <>linkDown, <>linkAcross; 
+
+	*new { arg linkDown, linkAcross;
+		^super.newCopyArgs(linkDown, linkAcross)
+	}
+	
+	
 	size { var i = 0, link;
 		link = linkAcross;
 		while ({ link.respondsTo('linkAcross') },{


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/