Lisp HUG Maillist Archive

Muffling redefinition warnings...

.... don't ask why :)  I'd like to muffle *all* redefinition warnings.   
I know about dspec:*redefinition-action*, but it seems to miss some  
cases.  E.g.

(defstruct foo a s d)

(let ((dspec:*redefinition-action* :quiet))
    (defstruct foo q w e))

still issues some warnings.

Incidentally, changing :quiet to :error results in a warning when  
compiling and not in an error.

Cheers

Marco




--
Marco Antoniotti, Associate Professor				tel.	+39 - 02 64 48 79 01
DISCo, Università Milano Bicocca U14 2043
Viale Sarca 336
I-20126 Milan (MI) ITALY

Please note that I am not checking my Spam-box anymore.






Re: Muffling redefinition warnings...

FWIW, I don't get any warning if the defstructs are in a file but I do  
get if I first do the defstructs at the top-level.

On Jul 9, 2008, at 1:31 PM, Marco Antoniotti wrote:

> (let ((dspec:*redefinition-action* :quiet))
>   (defstruct foo q w e))

--
Gary Warren King, metabang.com
Cell: (413) 559 8738
Fax: (206) 338-4052
gwkkwg on Skype * garethsan on AIM





Re: Muffling redefinition warnings...

I don't know Lispworks much at all but would adding a binding for  
lw:*handle-warn-on-redefinition* help?

On Jul 9, 2008, at 1:31 PM, Marco Antoniotti wrote:

>
> ... don't ask why :)  I'd like to muffle *all* redefinition  
> warnings.  I know about dspec:*redefinition-action*, but it seems to  
> miss some cases.  E.g.
>
> (defstruct foo a s d)
>
> (let ((dspec:*redefinition-action* :quiet))
>   (defstruct foo q w e))
>
> still issues some warnings.
>
> Incidentally, changing :quiet to :error results in a warning when  
> compiling and not in an error.
>
> Cheers
>
> Marco
>
>
>
>
> --
> Marco Antoniotti, Associate Professor				tel.	+39 - 02 64 48 79 01
> DISCo, Università Milano Bicocca U14 2043
> Viale Sarca 336
> I-20126 Milan (MI) ITALY
>
> Please note that I am not checking my Spam-box anymore.
>
>
>
>
>

--
Gary Warren King, metabang.com
Cell: (413) 559 8738
Fax: (206) 338-4052
gwkkwg on Skype * garethsan on AIM





Updated at: 2020-12-10 08:42 UTC