[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defstructs knowing their name

CC: (BUG lispm) at MIT-AI
This has existed for years, it is called named-structures.  They're in
the manual although they're not very well documented.  Use the :NAMED
option to defstruct to create one.  It doesn't make sense for the constructor
macro to check type; it isn't applied to a structure, it returns one.
The access macros could check type, but this isn't done since it would
slow them down by quite a bit.  Type would have to be checked at run time
not at compile time of course