[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-----
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.
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
-----END PGP SIGNATURE-----
More information about the Pd-dev