From: SourceForge.net <no...@so...> - 2007-11-11 18:38:58
|
Bugs item #1829663, was opened at 2007-11-10 16:49 Message generated for change (Comment added) made by sds You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=1829663&group_id=1355 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: clisp Group: None >Status: Pending Resolution: Invalid Priority: 5 Private: No Submitted By: Aneil Mallavarapu (amallavarapu) Assigned to: Sam Steingold (sds) Summary: *suppress-check-redefinition* ignored Initial Comment: DEFCONSTANT and DEFMETHOD ignore *SUPPRESS-CHECK-REDEFINITION*. 1. DEFCONSTANT ignores *SUPPRESS-CHECK-REDEFINITION* [1]> (setf custom:*suppress-check-redefinition* t) T [2]> (defconstant a (gensym)) A [3]> (defconstant a (gensym)) WARNING: (DEFCONSTANT A (GENSYM)) redefines the constant A. Its old value was #:G12919. A Note that DEFCONSTANT never issues a warning when the value is the same. That is the fact it doesn't warn in the following situation is irrespective of *SUPPRESS-CHECK-REDEFINITION*: [4]> (setf custom:*suppress-check-redefinition* nil) NIL [5]> (defconstant b 1) B [6]> (defconstant b 1) B 2. DEFMETHOD ignores *SUPPRESS-CHECK-REDEFINITION* [1]> (defgeneric a (x)) #<STANDARD-GENERIC-FUNCTION A> [2]> (defmethod a ((x t)) x) #<STANDARD-METHOD (#<BUILT-IN-CLASS T>)> [3]> (a '(2)) ;; call the method (2) [4]> (setf custom:*suppress-check-redefinition* t) T [5]> (defmethod a ((x list)) x) WARNING: The generic function #<STANDARD-GENERIC-FUNCTION A> is being modified, but has already been called. #<STANDARD-METHOD (#<BUILT-IN-CLASS LIST>)> ---------------------------------------------------------------------- >Comment By: Sam Steingold (sds) Date: 2007-11-11 13:38 Message: Logged In: YES user_id=5735 Originator: NO did you read FAQ? ---------------------------------------------------------------------- Comment By: Aneil Mallavarapu (amallavarapu) Date: 2007-11-11 10:59 Message: Logged In: YES user_id=870521 Originator: YES It would be nice if there were a way to suppress these other warnings too. ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2007-11-10 19:34 Message: Logged In: YES user_id=5735 Originator: NO *SUPPRESS-CHECK-REDEFINITION* has nothing to do with DEFCONSTANT or DEFMETHOD. it only deals with ordinary functions. ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2007-11-10 19:34 Message: Logged In: YES user_id=5735 Originator: NO This bug report is now marked as "pending"/"invalid". This means that we think that the problem you report is not a problem with CLISP. Unless you - the reporter - act within 2 weeks, the bug will be permanently closed. Sorry about the inconvenience - we hope your silence means that you agree that this is not a bug in CLISP. ---------------------------------------------------------------------- Comment By: Aneil Mallavarapu (amallavarapu) Date: 2007-11-10 16:51 Message: Logged In: YES user_id=870521 Originator: YES My CLisp version: [6]> (lisp-implementation-version) "2.42 (2007-10-16) (built 3401715121) (memory 3403718434)" On WinXP SP2 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=1829663&group_id=1355 |