I also asked something in my first email and I hope I can confirm it


I tried making a second name - or an "alias" - for [equals~] (using C.2.9 class_addcreator C.2.9 in http://pdstatic.iem.at/externals-HOWTO/pd-externals-HOWTOse8.html )

But it didn't seem to work. I can get [==~] to instantiate as an alias, but only after I first instantiate it as "[equals~]". 

So, what's the deal, when does this aliasing work? Only if you load it as a library?


2016-04-05 1:19 GMT-03:00 Alexandre Torres Porres <porres@gmail.com>:
Well, I also found this zexy git https://git.iem.at/pd/zexy/ 

not sure how it compiles to objects like ==~ - coz i couldn't compile. But my colleague, Flavio, checked it out, and seems to have realized about the trick to compile an object as "==~". We did it and I compiled it for Mac Os and it is working.

By the code from the git above as a model, we changed the original code from:

void equals_tilde_setup(void)
{ 
equals_class = class_new(gensym(
"equals~"),
(t_newmethod)equals_new, 0,
sizeof(t_equals), 0, A_GIMME, 0);
sic_setup(equals_class, equals_dsp, SIC_FLOATTOSIGNAL);
}


To:

void setup_0x3d0x3d0x7e(void)
{
equals_class = class_new(gensym("==~"),
(t_newmethod)equals_new, 0,
sizeof(t_equals), 0, A_GIMME, 0);
sic_setup(equals_class, equals_dsp, SIC_FLOATTOSIGNAL);
}

void setup(void){
setup_0x3d0x3d0x7e();
}


Then the compiled object can be named as ==~ and it loads fine here. Should I expect that it loads just fine in any other OS as well?


cheers