The niladic system function ŚCLASSES returns a vector of references to all the user-defined classes in the workspace, plus any references to external classes which have been retained in the workspace (typically by a call to the system function ŚGETCLASS or the system method ŚCLASSREF)
In this example, we have three user-defined classes in the workspace, and we also create a reference to the .Net DateTime class:
)CLASSES
LiteraryWork Poem Sonnet
DT„'.net' ŚNEW 'System.DateTime' 2007 5 30
CLASSDT„DT.ŚCLASSREF
CLASSDT
{.net:DateTime}
ŚCLASSES
{LiteraryWork} {Poem} {Sonnet} {.net:DateTime}