Custom Query (1030 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (697 - 699 of 1030)

Ticket Resolution Summary Owner Reporter
#851 fixed Double-click failure gz gz
Description

from svspire: Double-clicking on the final paren in #'(lambda (element) (numberp element)) does not select the form.

#865 fixed restart-case mishandles cerror gz
Description
? (defun test (name) (restart-case (cerror "foo ~s" "bar ~s" name)
			  (a-restart () nil)))
TEST
? (test 'hah)
> Error: bar HAH
> While executing: TEST, in process listener(1).
> Type :GO to continue, :POP to abort, :R for a list of available restarts.
> If continued: foo #<error printing object>

Note the #<error printing object>. The problem seems to be restart-case transforming the cerror call and losing its format args in the process.

(pprint (macroexpand-1 '(restart-case (cerror "foo ~s" "bar ~s" name)
			  (a-restart () nil))))

(BLOCK #:G672
  (LET* ((#:G673 (%CONS-RESTART 'A-RESTART NIL NIL NIL NIL))
         (#:G670 (LIST #:G673)))
    (DECLARE (DYNAMIC-EXTENT #:G673 #:G670))
    (CATCH #:G670
      (LET ((%RESTARTS% (CONS #:G670 %RESTARTS%)))
        (DECLARE (DYNAMIC-EXTENT %RESTARTS%))
        (RETURN-FROM #:G672
          (LET ((#:G671
                 (CONDITION-ARG "bar ~s" (LIST NAME) 'SIMPLE-ERROR)))
            (WITH-CONDITION-RESTARTS
              #:G671
              #:G670
              (CERROR "foo ~s" #:G671)))))))

#961 fixed Error for wrong number of args to structure accessor Gary Byers gz
Description

This gets a compile time error rather than a compiler warning:

Welcome to Clozure Common Lisp Version 1.9-dev-r15341 (DarwinX8664)!
? (defstruct foo bar)
FOO
? (defun test () (foo-bar))
> Error: Required arguments in (CCL::STRUCTURE-TYPECHECK FOO) don't match lambda list (CCL::STRUCT CCL::TYPESPEC).
> While executing: (:INTERNAL CCL::NX1-COMPILE-LAMBDA), in process listener(1).
> Type :GO to continue, :POP to abort, :R for a list of available restarts.
> If continued: continue compilation ignoring this form
> Type :? for other options.
1 > 
Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.