Search Results
!!b2oSUmilA2N/g/105853772#105855396
7/10/2025, 7:34:40 AM
>>105855244
nobody's stopping you from using function pointers in structs as methods like in C though.
Without built in virtual table, its just one additional line to setup them methods. Also, Odin has a '->' operator that lets you skip the first parameter if its a reference to the struct itself so using methods if you wish to is not that annoying
https://odin-lang.org/docs/overview/#--operator-selector-call-expressions
>>105855276
>someone played dev saar's game?
unbelievably amazing
nobody's stopping you from using function pointers in structs as methods like in C though.
Without built in virtual table, its just one additional line to setup them methods. Also, Odin has a '->' operator that lets you skip the first parameter if its a reference to the struct itself so using methods if you wish to is not that annoying
https://odin-lang.org/docs/overview/#--operator-selector-call-expressions
>>105855276
>someone played dev saar's game?
unbelievably amazing
Page 1