Currently, the sb-alien:enum type only translates from and to keywords.
I couldn't see any reason for this restriction, so I propose to change
it to allow symbols from any package to be used. This shouldn't break
any old code, as keywords are of course still possible. The advantage
is, that the user can use any symbol if he wants to. And at least this
user would occasionally want to (although he isn't sure it's a good
idea, but unnecessary restrictions are bad anyway).
The attached patch implements the above, updates some comments and
the documentation accordingly, and adds two tests.
Vincent Arkesteijn <vincent@...> writes:
> The attached patch implements the above, updates some comments and
> the documentation accordingly, and adds two tests.
Thank you; I've merged this, and your patch to sb-grovel for getting
at the enums automatically, into sbcl-0.8.17.27.
Get latest updates about Open Source Projects, Conferences and News.