How do I extend IntegralType properly?
Matt Rogers
mattr at kde.org
Sat Apr 11 03:59:46 UTC 2009
On Sat, Apr 11, 2009 at 12:08:34AM +0200, Milian Wolff wrote:
> On Friday 10 April 2009, David Nolden wrote:
> > You have to make sure the type has a unique "Identity", and register it to
> > the duchain type register.
> >
> > See the custom cpp types to see how to do that stuff.
>
> Ah, ok.
>
> Further questions: Do I have to
>
> - implement the hash function? If so, is something like you did for
> CppClassType (for example 3 * base-class-hash) enough?
>
> - implement that fastCast stuff?
>
> - introduce my own Data-Class for that type, even if the Data itself doesn't
> change at all?
>
And can the answers be documented in the API docs so that those that come
later can avoid the same issues? :)
--
Matt
More information about the KDevelop-devel
mailing list