lcons structure definition uses :type lcons for its slot

Bug #889676 reported by Anton Kovalenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Slime
New
Undecided
Unassigned

Bug Description

LCONS structure defined in swank.lisp has a type specifier (or .. lcons) for its %CDR slot. From my reading of the standard, it's not guaranteed to work: toplevel defstruct form is required to make its name a valid type specifier at compile-time for /subsequent/ forms, not the defstruct form itself.

Though it seems to work most of the time, it causes a reasonable style-warning in SBCL, and a couple of hard-to-reproduce (load order dependent) build failures as well. It's better to remove type restriction on this slot to be on the safe side.

Revision history for this message
Anton Kovalenko (anton-sw4me) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.