Replies: 1 comment
-
No, there isn't another way to do this and no nothing is planned for it either. Odin does not and will not have methods. Additionally you shouldn't use this unless you have a good reason for it like dynamically needing a different implementation at runtime. Just use and call a normal procedure otherwise. I recommend reading the FAQ too: https://odin-lang.org/docs/faq/#why-does-odin-not-have-any-methods |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I played with following code to find a direct way to bind a proc with struct (like method). This works ...
Is there a better way to implement proc in struct or are there new features planed?
Beta Was this translation helpful? Give feedback.
All reactions