Given two types A and B, is it safe to assume that the following holds over the entire runtime of a program: Type A == Type B if and only if the pointers returned by getTypeInfo are the same? Or is it possible that e.g. the pointer getTypeInfo(anInt) can point to different addresses over the course of execution.
Background: I need to maintain a hash table, where the keys are types. If it is safe to make this assumption the addresses themselves could be used as a hash instead of actually comparing the underlying PNimTypes (implementing such a types comparison looks tricky on first glance, or is this already solved somewhere within Nim)?