[chuck-users] escaped backslash in string

Joel Matthys jwmatthys at yahoo.com
Fri Mar 8 15:44:19 EST 2013

Hi all. I'm working on a project that requires me to send a backslash 
character via OSC.

This construct is typical of C family languages:

"\\hello"  -------> prints: \hello

but ChucK doesn't seem to let me escape a backslash. Instead I get 
[unrecognized escape sequence: '\h'].

Same when I try to use octal: "\134hello"

Setting aside the crazy fact that I have to send a backslash over OSC 
(it's for Guido music notation in InScore), does anyone know how to get 
a backslash in a ChucK string?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20130308/fbb7dd93/attachment.htm>

More information about the chuck-users mailing list