Subject: Re: [Pharo-project] [NativeBoost] Allow hierarchy of objects in function definition
Hi guys,
Here is another idea which I think is nice, without disabling the typechecker or anything:
I suppose the LGitObjectExternal is a subclass of NBExternalObject
in LGitObjectExternal implement the #git_object_lookup as follows:
LGitObjectExternal>primitiveLookupIn: repo id: id type: type
� <primitive: 'primitiveNativeCall' module: 'NativeBoostPlugin' error: errorCode>
� ^self call: #(git_return_t git_object_lookup(self, git_repository_ptr repo, git_oid_ptr id, git_otype type))
then all the calls to #primitiveLookupIn:id:type: would succeed in all subclassed of LGitObjectExternal without doing anything special.
cheers,
ciprian