Hi,

Am Dienstag, den 21.02.2006, 17:45 +0000 schrieb Tony Pelton:
> On 2/21/06, Andreas Berger <[EMAIL PROTECTED]> wrote:
> > I know that this question should go to FPC, but since I am not on that
> > mailing list I am hoping some kind soul will answer this here :-)
> >
> > When I compile a Lazarus project from the command line I get a HINT for
> > every parameter not used in the method. This is ok if it is my method,
> > but methods used by events must have these parameters to work. I know I
> > can use the {$HINTS OFF} option to disable all hints, but that is not
> > really a good idea. Is there any way to disable only that one specific hint?
> 
> not really what you are asking but ...
> 
> i've noted, in bits of sample source, that some people do :
> 
> if(Sender = Nil) Then ;
> 
> ... at the top of the event procedure.
> 
> it took me a little while to realize why people were putting this into
> their event procedures.

in C they do just "sender;", much worse :)

> 
> it seems strange to me to inject extra ops into your code to avoid a
> compiler "hint" ... but what do i know.

yeah.. weird :)

That hint about unused parameters is well-meant, but it will just always
spam the programmer with spurious things :)

It probably would be nice to be able to turn them (only them) off as a
compiler setting, yeah... (and, arguably, those hints turned off by
default)

> 
> >
> > Regards,
> > Andreas
> 
> Tony

cheers,
  Danny


_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to