Hi,
I have a wrapper type and I'd like to overwrite Base.getproperty
so that A.x
returns A.values.x
, but I am using getproperty
in getproperty
and... stack overflow :boom:
Is there someway to do this?
This? getfield(A, :values).x
I'll try. Thanks :pray:
getfield
is basically the version of getproperty
that can't be overloaded and always refers to the real fields of a struct. So usually, it's the thing that getproperty
is implemented in terms of.
Got it. Thanks :pray:
Last updated: Nov 22 2024 at 04:41 UTC