On Monday 02 November 2009, Øyvind Harboe wrote:
> >
> > That is, encapsulate the "step" (or disassemble, etc)
> > logic in an object that's distinct from the target.
> >
> > That's a good general technique.  It's wrong to have
> > stuffed *everything* in the target class hierarchy;
> > there are other kinds of entities, which should be
> > loosely coupled to targets (not *tightly* as now).
> 
> So in any decent OO system, it's possible to optionally implement
> interfaces such as the above...

I look at it as having multiple objects.  Today's OpenOCD
code is pretty much all structured arount one "target".

Better that "target" be a cluster of related objects,
yes with their own types.  There are more relationships
than just subtyping...


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

Reply via email to