[PD-dev] [PD] Should message objects be able to pre-parse $0 into valid dollarzero?

IOhannes m zmoelnig zmoelnig at iem.at
Mon Sep 15 09:20:51 CEST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 2014-09-14 01:16, Jonathan Wilkes via Pd-dev wrote:
> To address your initial query about why may naturally want $0 in
> msg boxes, in no particular order: * the syntax for variables is
> the same in object and message boxes.  So when a user learns that
> $0 in an object box expands to a unique id, and $0 in msg expands
> to 0, their minds may naturally wander freely between the two
> separate contexts for the same combination of characters '$0'.
> Some users reasonably wonder why msg expansion to "0", which is all
> but useless,

as a non-native i had some trouble to correctly parse the term "all
but useless", but after a websearch came to my rescue, i agree.

what's more: i really think that $0 expanding to (float)'0' is a BUG.

unless we acn assign something *useful* to $0-in-msgboxes, i think it
should stay undefined, much like an argument out of range.

> error: $0 unavailable in msgboxes


> * related to above-- for consistency $0 in an obj or msg ought to
> expand to the selector.

oh yes.

it's a pity that this is unlikely to happen (for compat reasons), but
imho it's the only sensible expansion to $0 - in any context.

fgmasdr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUFpNNAAoJELZQGcR/ejb4psUP/2so0uCzdNyrraO0It4drp9q
NOHc60jBUdPurfdjxSoTmttuBXNryeXZejLQHTO2RlnEdqyRseMi8Cy9WJ7EEcVJ
2/ZiKl56aXWhsa+BTHs3sRcqkJOGdhMmBQT2FyA5ujgLWJbLCYeJ9J2lduspI7L6
XpNo9Mq2GDuS3O/Gx7ddTbtpgfpjD1k7He6ki517EFdtTY0om31wSbvalDqOzk2h
thPVwW9uj0aU3qoSQpQPu7u7uXXOcGBqX8KE+ohR/4NVAAVtLWfoFe2QfeXrSKmb
6PZiqvakM4pXMcMS3u8eSchDG/AUrlX2oES/V1DjzRzCvHUYetSik6PuCl2DtMpn
sldvhYN+biLYauRBckvJ4Ypw+g65q+ZqRT6ZtZwQzphAgwIwkWT59E/MSFZxxoPi
JxeiSxy273AyR+3IDZtiX4ZgW1dtim1ipjWIfvZzqB6O4WG2AbMgjR+lrPoxlR9e
84/ifVm/yLjjFYFrgvMHKqaojqIeRYgPXZMySBxSaGqsKjPXl8enmTeIBeDWD3d3
563YI9ROEsUMqe+//6kFXEKFdeMdJ1pZvsP1TR2EaZ2jIF8fr44d4D1DO2bhVitP
IxSDFTGM2yTa9IOk5fmSlz5HJQiARNRwgQxmUme+WROqKSa9LzmusMaVVJTWe7hf
DaTC9MbM1vJTd8q3UKa8
=i8tR
-----END PGP SIGNATURE-----



More information about the Pd-dev mailing list