gcl-devel
[Top][All Lists]
Advanced

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

Re: [Gcl-devel] Disable a warning?


From: Jared Davis
Subject: Re: [Gcl-devel] Disable a warning?
Date: Thu, 12 Aug 2004 09:03:33 -0500
User-agent: Mozilla Thunderbird 0.7.1 (X11/20040715)

I'm basically needing to change the way that read works. I will need to inject my changes into the top level read-eval-print loop, the debug loop, etc. Is there a way to do this without changing read itself?

Thanks,
   Jared

Pascal J.Bourguignon wrote:
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))






reply via email to

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