On Sunday 01 November 2009, Øyvind Harboe wrote:
> > At any rate, upcasting is trivial (return &p->foo_struct)
> > given the current single inheritance, and can't fail.
> 
> Actually it can. If I pass an interface pointer to a polymorphic
> routine that operates on that interface, that that implementation
> can not upcast.

Depends on details of the type model.  With what we have now,
it can't fail.


> But that's a more general OO problem. I'm all in favor of
> doing this a step at the time and getting rid of the current
> interface cruft and supporting simple interface inheritance
> would be a huge step in the right direction.

I think we're all in agreement on that one!!  Messy...

I've got the arm9 and armv7m sections of the type tree
cleaned up and sanity tested with target_to_FOO().  When
more is working, I'll post a branch somewhere.

Later tasks can be making "arm926 is-a target" work;
and restructuring to get a base class for non-M ARMs.

- Dave
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to