[Ecls-list] Defstruct question wrt ECL

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Tue Feb 17 14:55:43 UTC 2009

On Mon, Feb 16, 2009 at 8:25 PM, Stig Sandø <stig.sandoe at gmail.com> wrote:
> Hei,
> I have a piece of code that ECL seems to stumble upon. It's been awhile
> since I fineread CLHS,
> but it is my understanding that the code in question is ok according to the
> standard.  The code:
> $ cat ecl-issue.lisp
> (defstruct rstk
>   (make-element #'identity :read-only t))
> (defstruct (pq (:include rstk (make-element #'car))))

The code in ECL expects that you preserve the :read-only nature by
adding a :read-only t to this slot option. Perhaps this is not a
reasonable behavior. If other implementations do not have this
requirement, I will remove it.


Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28009 (Spain)

More information about the ecl-devel mailing list