gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Disable a warning?


From: Pascal J . Bourguignon
Subject: [Gcl-devel] Disable a warning?
Date: Thu, 12 Aug 2004 15:39:51 +0200

Jared Davis writes:
> Is there a way to disable the warning:
> 
>    Warning: READ is being redefined.

Yes, don't redefine it!  The effects of redefining a symbol in
COMMON-LISP are unspecified.

Instead, use another symbol in one of your own package:

(defpackage "EXAMPLE"
  (:use "COMMON-LISP")
  (:shadow "READ"))
(in-package "EXAMPLE")
(defun READ (&optional s)
    (values 'token))


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

Our enemies are innovative and resourceful, and so are we. They never
stop thinking about new ways to harm our country and our people, and
neither do we.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]