You can use class_addcreator to associate any symbol you want with
an object creator. Then when the user types that symbol into an object
box, it will call the constructor you supplied as an argument to
class_addcreator.
However, the same request for peer pressure applies here: outside of
the cases where aliases are already entrenched, don't use them. The
small benefit of less typing (or fancy method-sharing) isn't worth the
user-headaches when they fail to instantiate the object.
-Jonathan
On Wednesday, April 6, 2016 6:02 PM, Alexandre Torres Porres <porres@gmail.com> wrote:
in the last thread "Name conflicts "class overwritten; old one renamed 'x_aliased'" I was telling how in cyclone you can compile Line~ with alias names such as "line~" and "cyclone/line~", so you can call these two other versions instead. Other files in cyclone have alias name like Scope~ can be called as "scope~".
_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list