Say I have this structure in C:
struct foo { char *name; int (*links)(foo*); };
If I have x :: Ptr Foo , how do I get FunPtr to x links without using castPtrToFunPtr ? I want to avoid this due to a warning in Spells about functions and non-functions having different address ranges (and possibly sizes?), So casting can cause problematic behavior for these platforms.
source share