guicho271828 / common-lisp-extensions

list of extensions beyond CL available in lisp implementations, and the status of its spread.
21 stars 0 forks source link

CLOS sealing. #6

Open guicho271828 opened 5 years ago

guicho271828 commented 5 years ago

Sealed CLOS classes are protected from redefinitions. See also: sealable-metaobjects. SBCL has a similar extension for structures (freeze-type).

g000001 commented 5 years ago

Eclipse Common Lisp also has built-in sealing facility. https://github.com/blakemcbride/eclipse-lisp/blob/master/lisp/classes.lisp#L173