Custom Query (1030 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (607 - 609 of 1030)

Ticket Resolution Summary Owner Reporter
#769 fixed Multiple :constructor options in cl:defstruct R. Matthew Emerson lovesan
Description

Hello.

CCL does not accept multiple :CONSTRUCTOR options in DEFSTRUCT macro at the moment.

i.e. (defstruct (my-struct (:constructor make-my-struct) (:constructor my-struct)))

Error: Duplicate (:CONSTRUCTOR MY-STRUCT) options not allowed

While executing: DEFSTRUCT, in process listener(1).

This is an incompatibility with ANSI CL standard, which allows multiple constructor options: http://www.lispworks.com/documentation/HyperSpec/Body/m_defstr.htm

#1034 invalid #" reader error Kevin Forchione
Description

The sharp-double-quote example in Let Over Lisp requires the addition of an extra " at the end of the expression in order to allow return to evaluate the expression in the REPL. The following code:

(defun |#"-reader| (stream sub-char numarg)
  (declare (ignore sub-char numarg))
  (let (chars)
    (do ((prev (read-char stream) curr)
         (curr (read-char stream) (read-char stream)))
        ((and (char= prev #\") (char= curr #\#)))
      (push prev chars))
    (coerce (nreverse chars) 'string)))

(set-dispatch-macro-character 
 #\# #\" #'|#"-reader|)

should produce a the following:

? #"contains " and \."#
"contains \" and \\."

However, to produce that result you'll have to add an additional " to the end of the expression, which shouldn't be required.

#1220 fixed FORMAT performance regression (memory usage) Gary Byers Michael Kappert
Description

When *print-circle* is T, FORMAT uses three times as much memory when printing conses compared to 1.9-r15757 (LinuxX8664), for example:

(defun test () (dotimes (k 100000) (format () "~a" '((a) (b)))))
(time (test))

Runtime is also increased, by ca. 25%

When *print-circle* is nil, the increase in memory usage is even bigger (almost tenfold).

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.