Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

defstructs and packages

Name: Anonymous 2011-07-27 16:43

Why CL includes two non-orthogonal concepts for code organization? Why to define an IMAGE package I have to separately declare (defstruct image-state ...)?

Can we replace defstructs with packages in future Lisps?

Name: not >>17 2011-07-28 10:28

>>19
Symbols' name is a string, but symbols themselves tend to be structures which have a name (string), a home package (nil if uninterned), a plist, value, functional value, and may belong to many other standard namespaces (classes, structures, etc) or user-defined namespaces (wether the namespaces to which it belongs (or aditional properties) is stored in the symbol structure or not is irrelevant as long as a proper accessor interface is provided).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List