'#subtype' directive
#4314
-
What exactly is |
Beta Was this translation helpful? Give feedback.
Answered by
Hyrtwol
Nov 18, 2024
Replies: 1 comment 2 replies
-
lets say you have 2 structs
it makes is possible to call a proc that that takes the subtype as an argument without the need for a cast. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not really, I would call it "auto-cast-to-subtype" :p inheritance would suggest you can override behaviour and we don't have methods in Odin.