-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Proposal] overload definitions in the patch explorer #41
Comments
Regarding the I can imagine that this gets tricky soon.
Regarding the first bullet point:
We now would need to have an exception that allows connecting this pin from different I can imagine that there are more issues with the idea, since in our compiler Up to that point please tell us if proposal #43 works for you and if not why not. Regarding overloads for other not-so-special cases: We should have a discussion that compares
When starting to design VL, we were copying the idea of nodes having versions from vvvv beta as we were happy with that kind of distinguishment. Version-names allow the node designer to describe the purpose of that overload with a snappy version-name. Support for real overloads was actually only added in order to reference external nodes from any .Net assembly. We allowed to use the pin-choice overload-selecting node references also for normal VL nodes, but we're not yet super happy with this kind of system. So up to the point where we have a solution that all of the core team are happy with, I guess, we are still more in favor of versions or completely different node names for different operations. I understand that this is not your real issue. Your real issue is that you want to have a second constructor and the naming currently is the only way of expressing what a constructor is. But again this might get trickier than expected. So we are eager to hear if there are workarounds that allow you to proceed with whatever you actually wanted to do. |
i agree to all of that and yes, #43 is a good workaround |
Ok, i want to have overloads #40 .
I'm assuming it's not that much a technical issues as overloads from imported libs are working and so hopefully patched ones can go the same route.
The proposal is to have some kind of standardized* annotation , that can define overloads in the patch explorers Operations section.
as a (bad) example, let's assume, the annotation syntax is an underscore followed by some number, the Operations panel could look like this:

The add_1 and add_2 Operations would then be treated as overloads: there's one single add entry in the node-browser and their 2 signatures could be chosen the usual way.
The cool thing is, that this could also work with the Create operation, where i miss this feature most.
The text was updated successfully, but these errors were encountered: