What does the "adapt homonym" option in the main object context menu do?
What does "adapt homonym" do?
its used for converting objects that are polymorphic (i.e. have different variants for different types e.g inlets) , you can use it to switch between them in some cases (promotion), it was moved to the expert menu, as its frankly easier to just use replace
its been there from the beginning, and perhaps now with editor changes, better automatic promotion it possibly could be ditched. I rarely used it then, and never now... partly because you need to remember the promotion rules, which I never can ... though i wouldn't be surprised if johannes uses it , as he knows it all inside out
Right. I just tried it with a blue "+" and a red "*". Of course connecting the two results in an automatic replacement as we're used to; the module with the input connection changes. Thus I had to replace the changed module explicitly to what it was before the implicit replacement, then trying "adapt homonym".
Some observations when using the "adapt homonym" option on the module with the input connection (it does nothing when using it for the module with the output connection):
- it gets replaced with a new one with matching inputs, and the old one gets renamed with a "____tmp" suffix
- the new adapted module is hidden behind the old one (confusing for a moment)
- the old renamed module seem to not obey the automatic replacement rules any longer, so something has happened to it besides the renaming
I think I'll stick to the "replace" function