Re: [PD] What is the purpose of iemgui_raute2dollar

2015-11-01 Thread Miller Puckette
This does need fixing... it's a primitive escaping mechanism which needs to be replaced with a "correct" one. Unfortunately there are various places in the code that escape stuff in various ways (to get strings past the TCL parser or the Pd parser) and it's never been thought about in a unified

Re: [PD] What is the purpose of iemgui_raute2dollar

2015-11-01 Thread Ivica Bukvic
Right, but this function does not do that, it explicitly replaces # with $. What does # have to do with anything? Are you saying # is being substituted for $ to preserve it? Even so, this still makes no sense because if you create an iemgui object (pick one), then add a label with only a "#" in

Re: [PD] What is the purpose of iemgui_raute2dollar

2015-11-01 Thread Jonathan Wilkes via Pd-list
Doesn't m_binbuf.c have a full set of functions to handle that for you? -Jonathan On Monday, November 2, 2015 12:03 AM, Ivica Bukvic wrote: I think it increases the length of the string and therefore requires string resizing, possibly causing other problems down the

Re: [PD] What is the purpose of iemgui_raute2dollar

2015-11-01 Thread Ivica Bukvic
I think it increases the length of the string and therefore requires string resizing, possibly causing other problems down the road... On Sun, Nov 1, 2015 at 11:57 PM, Jonathan Wilkes wrote: > What's the problem with simply backslashing the dollar sign before sending > the

Re: [PD] What is the purpose of iemgui_raute2dollar

2015-11-01 Thread Jonathan Wilkes via Pd-list
What's the problem with simply backslashing the dollar sign before sending the message to Pd? -Jonathan On Sunday, November 1, 2015 11:04 PM, Miller Puckette wrote: This does need fixing... it's a primitive escaping mechanism which needs to be replaced with a "correct"