[lazarus] Debug class

Michael Van Canneyt michael.vancanneyt at wisa.be
Wed Jul 7 04:19:53 EDT 1999




On Tue, 6 Jul 1999, Michael A. Hess wrote:

> michael at tfdec1.fys.kuleuven.ac.be wrote:
> > 
> > > procedure TControl.DoDispatchStr(message : string)
> > > begin
> > >    DispatchStr(message);
> > > end;
> > 
> > Once more, I don't think that this belongs in the TControl Class.
> > It is gui dependent; so it must go in guiapi (or whatever you called
> > it)
> > 
> > If I understood correctly, TControl is GUI independent; so it should
> > not have the DoDispatchStr().
> 
> It still is GUI independent. I don't see how the above code ties it in
> any way to the GUI be that GTK or Qt or whatever. Instead of calling
> TControl.DispatchStr directly it just calls TControls.DoDispatchStr. I
> can't see how that makes much of a difference. Am I missing something?

Well, for a Win32 widget it wouldn't make sense to call dodispatchstr().
If it isn't in TControl, it can't be called, so we avoid mistakes :-)

Just a matter of clean coding.

Michael VC.






More information about the Lazarus mailing list