[fpc-devel] Hint: Parameter "sender" not used
This is not a big issue, anyway could we avoid the endless list of such similar hints compiling Lazarus and our program? Don't make me wrong, I apreciate the hints of the compiler. 9 times out of 10 if I don't use a parameter in a function or a method there it is an error of mine. But in published methods the parameter list is mandatory, so it doesn't make sense to "hint" them. Moreover they hide real hints. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Hint: Parameter "sender" not used
Hi Uberto, on 2005-03-11T18:35:45+01:00 Uberto wrote: > This is not a big issue, anyway could we avoid the endless list of such > similar hints compiling Lazarus and our program? > Don't make me wrong, I apreciate the hints of the compiler. > 9 times out of 10 if I don't use a parameter in a function or a method there > it is an error of mine. > But in published methods the parameter list is mandatory, so it doesn't make > sense to "hint" them. > Moreover they hide real hints. I agree. I have (unsuccessful) try to post a similar mail in the fpc pascal list. But what do you mean with published methods? The published section is intended only for properties, which should be published in the object inspector. I guess you mean event methods. Beside event methods, callback functions and virtual methods could be affected too. My main problem, if I hide the hint by using {$HINTS OFF} ... {$HINTS ON} I remove all useful hints as well. wkr Peter. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Hint: Parameter "sender" not used
> But what do you mean with published methods? The published section is > intended only for properties, which should be published in the object > inspector. I guess you mean event methods. Beside event methods, > callback functions and virtual methods could be affected too. Yes, it means anything only in static private/protected methods and in pure functions/procedures. Completely removing it (optionally) could be a good solution too, Delphi hasn't and I never missed it. > > My main problem, if I hide the hint by using > > {$HINTS OFF} > ... > {$HINTS ON} > > I remove all useful hints as well. Yes! Exactly my point. But now the useful hints are sunk into tons of completely useless ones. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Hint: Parameter "sender" not used
Uberto Barbini wrote: >>But what do you mean with published methods? The published section is >>intended only for properties, which should be published in the object >>inspector. I guess you mean event methods. Beside event methods, >>callback functions and virtual methods could be affected too. > > > Yes, it means anything only in static private/protected methods and in pure > functions/procedures. > Completely removing it (optionally) could be a good solution too, Delphi > hasn't and I never missed it. > >>My main problem, if I hide the hint by using >> >>{$HINTS OFF} >>... >>{$HINTS ON} >> >>I remove all useful hints as well. > > > Yes! Exactly my point. But now the useful hints are sunk into tons of > completely useless ones. > Make your own error.msg file and change the hints you don't want to see into notes or comments. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Hint: Parameter "sender" not used
> > Yes! Exactly my point. But now the useful hints are sunk into tons of > > completely useless ones. > > Make your own error.msg file and change the hints you don't want to see > into notes or comments. Are you suggesting this as "quick hack" or do you find useful those hints? Are you theorically against it? I'd like it but it doesn't worth the changing of error.msg. Bye Uberto ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Hint: Parameter 'sender' not used
>> > Yes! Exactly my point. But now the useful hints are sunk into tons of >> > completely useless ones. >> >> Make your own error.msg file and change the hints you don't want to see >> into notes or comments. > > Are you suggesting this as "quick hack" or do you find useful those hints? > Are you theorically against it? > > I'd like it but it doesn't worth the changing of error.msg. This is a workaround. For us compiler-developpers it has low priority, IOW don't expect changes soon if we don't get any patches to support toggling specific Hints on/off. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel