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

[sc-dev] SF.net SVN: supercollider: [5715] trunk/build/SCClassLibrary/Common/Files/ PathName.sc



Revision: 5715
          http://svn.sourceforge.net/supercollider/?rev=5715&view=rev
Author:   kersten
Date:     2006-12-20 06:37:38 -0800 (Wed, 20 Dec 2006)

Log Message:
-----------
added support for path concatenation

Modified Paths:
--------------
    trunk/build/SCClassLibrary/Common/Files/PathName.sc

Modified: trunk/build/SCClassLibrary/Common/Files/PathName.sc
===================================================================
--- trunk/build/SCClassLibrary/Common/Files/PathName.sc	2006-12-19 18:54:04 UTC (rev 5714)
+++ trunk/build/SCClassLibrary/Common/Files/PathName.sc	2006-12-20 14:37:38 UTC (rev 5715)
@@ -174,6 +174,12 @@
 		^number
 	}
 	
+	/* concatenation */
+	+/+ { | path |
+		var otherFullPath = path.respondsTo(\fullPath).if({ path.fullPath }, { path.asString });
+		^this.class.new(fullPath +/+ otherFullPath)
+	}
+
 	/* additional methods jrh */
 	
 	entries {


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