> > >Is RETURN SELF correct? Shouldn't it be RETURN NIL? > > +1... > > Some years ago: > > 2003-07-07 11:12 UTC-0300 Antonio Carlos Pantaglione > * include/hbclass.ch > + Added support for PROCEDURE <ProcName> CLASS <ClassName> syntax. > > I changed hbclass to support procedures for optimize pourpose. IMO > only New() method need return Self. There are others exceptions like > Redefine in FWH that need return Self too.
This is good, but in this case IMO METHOD declaration and definition should use some sort of consistent syntax. Declaring as METHOD and implementing as PROCEDURE is very sloppy. If someone knows the consistent syntax, we can use it, it would surely be a bit faster than FUNCTION + RETURN NIL. Maybe METHOD PROCEDURE? I can't remember. Brgds, Viktor
_______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour