[chuck-users] sillyness witth file names
tom at alltom.com
Fri May 15 11:52:24 EDT 2009
2009/5/15 Kassen <signal.automatique at gmail.com>:
> I just discovered this is a valid filename under Linux (you can still play
> the file by double-clicking, even);
> This means that this;
> my_buffer.read("my_file"); //gives a syntax error with the above filename
> is more safe to use than this;
> "my_file" => my_buffer.read; //this parses, then crashes with the above
> This isn't much good for anything, aside from pointing out that there can be
> valid files that can't be played back by ChucK, but it's a exciting, new and
> especially perverse way to crash so I find that noteworthy on it's own.
Well, escaping like "foo\";Machine.crash();\"bar.wav" => snd.read; works.
More information about the chuck-users