Opened 12 years ago

Closed 12 years ago

#236 closed defect (fixed)

Bad error message for malformed forms

Reported by: Stassats Owned by: ehuelsmann
Priority: minor Milestone:
Component: compiler Version:
Keywords: Cc:
Parent Tickets:

Description

Evaluating (1 2 3) yields "The value 1 is not of type LIST." The fix for this is trivial, attached.

And compiling:

(compile nil '(lambda () (1 2 3)))
; Caught ERROR:
;   COMPILE-FORM unhandled case (1 2 3)

#<THREAD "interpreter" {1775831E}>: Debugger invoked on condition of
  type TYPE-ERROR
  The value #<EQUAL HASH-TABLE 0 entries, 11 buckets
  {23F3329A}> is not of type STRUCTURE-OBJECT.

Attachments (1)

eval.diff (474 bytes) - added by Stassats 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by Stassats

Attachment: eval.diff added

comment:1 Changed 12 years ago by ehuelsmann

(In [14078]) Re #236: Solve the EVAL part of "Bad error message for malformed forms".

comment:2 Changed 12 years ago by ehuelsmann

(In [14081]) Re #236: prepare to offer restarts from inside the compiler.

Note: Restarts, when used to replace forms, need to be in pass1 because that's

where we inject variable references, etc.

comment:3 Changed 12 years ago by ehuelsmann

Resolution: fixed
Status: newclosed

(In [14082]) Close #236: fix the COMPILE part of the issue.

Note: See TracTickets for help on using tickets.