SF.net SVN: supercollider: [7524] trunk/build/SCClassLibrary/Common/Core/ Symbol.sc

View: New views
1 Messages — Rating Filter:   Alert me  

SF.net SVN: supercollider: [7524] trunk/build/SCClassLibrary/Common/Core/ Symbol.sc

by cruxxial :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Revision: 7524
          http://svn.sourceforge.net/supercollider/?rev=7524&view=rev
Author:   cruxxial
Date:     2008-04-19 16:40:27 -0700 (Sat, 19 Apr 2008)

Log Message:
-----------
fixing Symbol-asCompileString : it needed to escape the ' character

Modified Paths:
--------------
    trunk/build/SCClassLibrary/Common/Core/Symbol.sc

Modified: trunk/build/SCClassLibrary/Common/Core/Symbol.sc
===================================================================
--- trunk/build/SCClassLibrary/Common/Core/Symbol.sc 2008-04-19 23:38:24 UTC (rev 7523)
+++ trunk/build/SCClassLibrary/Common/Core/Symbol.sc 2008-04-19 23:40:27 UTC (rev 7524)
@@ -11,7 +11,8 @@
  _Symbol_AsFloat
  ^this.primitiveFailed
  }
- //asCompileString { ^super.asString }
+ // the primitive fails to escape '
+ asCompileString { ^("'" ++ super.asString.escapeChar($') ++ "'") }
  asClass {
  _SymbolClass
  // if Symbol represents a class name then return the class, else return nil.


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
sc-dev mailing list
sc-dev@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-dev
LightInTheBox - Buy quality products at wholesale price