I am using allot of virtual functions in a gui system and i want to be able to check "types",
For example:
// @TypeOf(node) == *Node
if (node.type_id == @idOfType(ClockNode)) {
clock: *ClockNode = @ptrCast(node);
return clock.getTime();
}```
Does zig store anything like this? using strings wouldnt be ideal and the other option is enums which is more code and less scaleable