Custom Query (1030 matches)
Results (811 - 813 of 1030)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #926 | fixed | Some users have difficulty understanding the error that occurs when declarations are encountered in contexts where they aren't allowed | ||
| Description |
Dan Weinreb 2009-01-05 13:49:46 EST (defun foo (a) (declare (fixnum a)) (+ a a)) works fine. (defmacro bad () '(declare (fixnum a))) (defun foo (a) (bad) (+ a a)) gets a compile-time error, because macros are not allowed to expand into declarations. However, the text of the error message is: DECLARE not expected in (DECLARE (FIXNUM A)). That's pretty unclear. [NB: was ITA bug 52936] |
|||
| #927 | fixed | If a symbol-macrolet defines the same symbol twice, the compiler should complain | ||
| Description |
Dan Weinreb 2009-01-09 10:59:52 EST We had trouble in a place where a macro of ours expanded into a symbol-macrolet with several clauses, two of which defined the very same symbol. See our Buzilla http://svn.internal.itasoftware.com/trac/changeset/238504 I don't actually see anywhere in the HyperSpec that says this is illegal, although it also does not say what it would do (which symbol "wins"?). SBCL flags it as an error. For the time being, Fare has fixed that macro to check for that error manually. [NB: ITA Bug 53168] |
|||
| #928 | fixed | DEFINE-CONDITION allows non-condition parent conditions | ||
| Description |
Ethan H. Schwartz 2009-04-14 11:24:20 EDT On DEFINE-CONDITION, The CLHS says: parent-type---a symbol naming a condition type. If no parent-types are supplied, the parent-types default to (condition). With CCL Version 1.3-dev-r11854-working-0711 (LinuxX8664): (defclass a () ()) #<STANDARD-CLASS A> (define-condition foo (a) ()) FOO (error 'foo) #<STANDARD-CLASS FOO> is not a condition class It would be better if CCL complained at time of compilation of the condition that the parent-type argument is not a condition type. [was ITA bug 58450] |
|||
