Em qui, 8 de nov de 2018 às 15:07, Christof Ressi christof.ressi@gmx.at escreveu:
OK, if you want to be sure, you can use something like gensym("\a") instead. if you want to be really sure, use the mongolian vowel seperator or the MD5 hash of your Pd executable.
Right, I get the hack, thanks for the suggestion, seems like gensym("\f") is safe enough, I wouldn't really know how to do it, although seems Pd now deals with "", but I really didn't get how so.
Anyway, seems like the only true way of working around this limitation is with "proxy", and, yeah, not worth it :)
cheers
Gesendet: Donnerstag, 08. November 2018 um 17:41 Uhr Von: "IOhannes m zmölnig" zmoelnig@iem.at An: pd-dev@lists.iem.at Betreff: Re: [PD-dev] simple external question (how to make an inlet
acess a function)
On 11/8/18 5:25 PM, Christof Ressi wrote:
there's no way around class_addmethod
indeed, that's the way Pd works (or use proxy objects. shudder)
but you can use gensym("") if you want to prevent the user from
invoking the code via a message.
note that you can't do that for more than one inlet, obviously.
actually it's pretty easy (although probably unusual) to invoke such a method:
[symbol( | [$1 foo bar baz( |
gfmdsar IOhannes
Pd-dev mailing list Pd-dev@lists.iem.at https://lists.puredata.info/listinfo/pd-dev