[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nested class definitions
Has anyone thought about nested class definitions (should we support them and
what should they mean)? Given that Common Lisp is (claimed to be) a lexically
scoped language, we should consider this issue. The Simula people contend
that lexically scoped classes are useful, both for "privacy" and for
dynamically generated classes (analogous to closures, which are dynamically
generated functions). An example of the latter is creating a new "token"
class to represent the tokens of one specific "grammar" (by a parser
If we don't want to tackle this issue now, we should make nested classes
illegal to give us room for future extensions.