[PD-dev] weird bug: dot in comment disappears
Mathieu Bouchard
matju at artengine.ca
Thu Mar 30 22:49:36 CEST 2006
On Wed, 29 Mar 2006, Hans-Christoph Steiner wrote:
> The weird thing is that if you auto-generate the comment with the 1.,
> then it survives a copy-paste. Try the patch in the bug tracker, if you
> haven't already.
It's because you make it as a single symbol. In Pd, gensym() can turn any
null-terminated string into a symbol. When you copy+paste, the contents of
the comment don't change, they point to the same symbol. When you save to
a file, however, it gets printed without quoting, because quoting is not
supported (or not fully), so for a lot of possible symbols there's no
syntax that you can use to produce them literally, you have to go thru
gensym() explicitly instead (e.g. [sprintf]).
Copy+paste only copies a t_atom[] whereas saving/loading calls
binbuf_save/binbuf_eval.
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada
More information about the Pd-dev
mailing list