I see one problem here;
return $extended->$field( @_ );
requires that my setters in the base class are called exactly as the field names. Otherwise it won't work :(
p.e. in my base class I have a field ACCOUNT and a setter called setAccount. The constructor above will however call my base class as $extended->ACCOUNT instead of $extended->setAccount.
In reply to Re^2: OO: extending a closure object
by gargle
in thread OO: extending a closure object
by gargle
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |