Hello guys,
I was wondering how to retrieve the size of a type declared as a
ref object
Run
Consider this example:
type
MyObject = object
a : int
b : int
c : int
MyRefObject = ref object
a : int
b : int
c : int
echo sizeof(MyObject) #Correctly outputs 24
echo sizeof(MyRefObject) #Outputs only the size of the pointer, 8
Run
How could I retrieve the size of the underlying structure of
MyRefObject
Run
?
