Access to the table of active characters in Common Lisp

I heard that the active character table is available in the Common Lisp environment. I got it wrong?

+6
lisp common-lisp
source share
2 answers

"Character tables" are called "packages" in Common Lisp. See For example: Introduction to Packages, CL HyperSpec .

Several package operations are available in Common Lisp: Package Dictionary .

Symbols can be members of packages (being interned).

The variable * package * contains the package as a value, which is used by several operations that use the default package. An example is the reader , which by default looks at the package * package *.

+8
source share

You can use do-all-symbols .

See here for a similar question. The accepted answer also contains some information about the packages. It's comfortable.

Something like this in code. Define useful-symbol-p as you like:

 (let ((lst ())) (do-all-symbols (s lst) (when (useful-symbol-p s) (push s lst))) lst) 
+5
source share

All Articles