What he needs is a function pointer that is able to operate on a "object hierarchy" (not inheritance) parent object.
And just to mention AD: Your code is elementally bugged!
Self within a function is null even if called on a type instance (only methods have a self as they are per instance, while function are per type!). This is a current compiler bug in 1.22 which will be cleaned with the next major version, so better get a "correct" solution to this fake.
And just to mention AD: Your code is elementally bugged!
Self within a function is null even if called on a type instance (only methods have a self as they are per instance, while function are per type!). This is a current compiler bug in 1.22 which will be cleaned with the next major version, so better get a "correct" solution to this fake.