[PD-dev] Problem with renaming setup functions

IOhannes m zmölnig zmoelnig at iem.at
Sat Nov 16 19:26:46 CET 2013


On 2013-11-16 00:10, Thomas Mayer wrote:
> So, for objects that need a special character converted to hex, the
> setup function must be called setup_<object>, while for other objects
> the setup function must be called <object>_setup.
> 
> This is kind of confusing.


yes, but it's the way it is.
the "<object>_setup()" naming scheme, has been introduced in the days of
yore and is this practically impossible to change.

the "setup_<hexobject>()" naming scheme is relatively young and only
available through the hexloading stuff. "<hexobject>_setup()" does *not*
work, as the hexencoded object name might start with a number, and a
C-function must start with a character (and not with a digit).


gfsdmr
IOhannes


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 897 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20131116/3c3367b2/attachment.pgp>


More information about the Pd-dev mailing list