[Openmcl-devel] deftype list-of (recursive definition)
Stas Boukarev
stassats at gmail.com
Thu Jul 26 08:37:09 PDT 2012
Taoufik Dachraoui <dachraoui.taoufik at gmail.com> writes:
> Hi
>
> I would like to define a recursive type as follows:
>
> (deftype list-of (type)
> `(or null (cons ,type (list-of ,type))))
>
> This does not work (stack overflow)
>
>
> How can define such types?
You can't. CL doesn't support them.
--
With best regards, Stas.
More information about the Openmcl-devel
mailing list