Hi,
is there any chance to use curly braces (ASCII characters 123, 125) in pd? I initially wanted to use them in a message which I would like to send via OSC, but maybe there is another possibility to generate these? would be great to know, if so.. thanks!
Paul
you can try:
[123( | [makefilename %c]
gr, Tim
2012/9/3 Paul Gruendorfer paul@lefant.net
Hi,
is there any chance to use curly braces (ASCII characters 123, 125) in pd? I initially wanted to use them in a message which I would like to send via OSC, but maybe there is another possibility to generate these? would be great to know, if so.. thanks!
Paul _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi, thanks for your reply - but that locks up pd. seems that there are reserved characters pd uses itself (got this from the makefilename help) anyhow I can live with that:) was just wondering what is happening
thx
On 3 Sep 2012, at 16:45, tim vets wrote:
you can try:
[123( | [makefilename %c]
gr, Tim
2012/9/3 Paul Gruendorfer paul@lefant.net Hi,
is there any chance to use curly braces (ASCII characters 123, 125) in pd? I initially wanted to use them in a message which I would like to send via OSC, but maybe there is another possibility to generate these? would be great to know, if so.. thanks!
Paul _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-09-03 16:59, Paul Gruendorfer wrote:
hi, thanks for your reply - but that locks up pd.
it only locks Pd if you are printing the character via pd-gui (either print to console or via a symbolbox) that's also the reason why it is prohibited to type curly braces in Pd.
the quick fix is to trust that curly braces are created with the [makefilename] trick and don't display them (and if you must, use "-stderr" and print them to...stderr)
seems that there are reserved characters pd uses itself (got this from the makefilename help) anyhow I can live with that:) was just wondering what is happening
curly braces are reserved in tcl (the language pd-gui is written in). displaying a "{" will make pd-gui wait for a matching "}", and while it does so, it will hang.
fgamsdr IOhannes
great! thanks for the explanation what's going on
so I will try how I could make the trick useable!
On 3 Sep 2012, at 17:44, IOhannes m zmoelnig wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-09-03 16:59, Paul Gruendorfer wrote:
hi, thanks for your reply - but that locks up pd.
it only locks Pd if you are printing the character via pd-gui (either print to console or via a symbolbox) that's also the reason why it is prohibited to type curly braces in Pd.
the quick fix is to trust that curly braces are created with the [makefilename] trick and don't display them (and if you must, use "-stderr" and print them to...stderr)
seems that there are reserved characters pd uses itself (got this from the makefilename help) anyhow I can live with that:) was just wondering what is happening
curly braces are reserved in tcl (the language pd-gui is written in). displaying a "{" will make pd-gui wait for a matching "}", and while it does so, it will hang.
fgamsdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlBE0HYACgkQkX2Xpv6ydvR6pgCfaNR0zzMmsTW/4cgjVln970pG mCoAnR2zCt6/ChErp39HCwdDzD9KTaXv =q776 -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Am 03.09.2012 um 17:44 schrieb IOhannes m zmoelnig:
curly braces are reserved in tcl (the language pd-gui is written in). displaying a "{" will make pd-gui wait for a matching "}", and while it does so, it will hang.
I have always thought (and still do) that this is a really bad excuse. As in any other proper language one can always escape reserved characters, same in TCL. On the other hand, the TCL language makes my eyes bleed, so i can't try to fix it. gr~~~
-- Thomas Grill http://grrrr.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-09-03 20:10, Thomas Grill wrote:
Am 03.09.2012 um 17:44 schrieb IOhannes m zmoelnig:
curly braces are reserved in tcl (the language pd-gui is written in). displaying a "{" will make pd-gui wait for a matching "}", and while it does so, it will hang.
I have always thought (and still do) that this is a really bad excuse. As in any other proper language one can always escape reserved characters, same in TCL.
definitely. i'd say it _is_ a bug, and forbidding curly braces is not a fix but a workaround. (btw, with Pd-0.43 i now _can_ [print] curly braces (they show up as "{", though, so it's only halfway...)
On the other hand, the TCL language makes my eyes bleed, so i can't try to fix it.
:-)
fgmasdr IOhannes