Safe enumerations for codesets Lassi Kortela (13 Dec 2022 12:09 UTC)
Re: Safe enumerations for codesets Marc Nieper-Wißkirchen (14 Dec 2022 08:17 UTC)
Re: Safe enumerations for codesets Lassi Kortela (14 Dec 2022 09:05 UTC)
Re: Safe enumerations for codesets Lassi Kortela (14 Dec 2022 09:39 UTC)
Re: Safe enumerations for codesets Marc Nieper-Wißkirchen (14 Dec 2022 11:29 UTC)
Re: Safe enumerations for codesets Lassi Kortela (14 Dec 2022 12:42 UTC)
Re: Safe enumerations for codesets Marc Nieper-Wißkirchen (14 Dec 2022 18:26 UTC)
Re: Safe enumerations for codesets Lassi Kortela (15 Dec 2022 09:29 UTC)
Re: Safe enumerations for codesets Lassi Kortela (15 Dec 2022 09:48 UTC)

Re: Safe enumerations for codesets Lassi Kortela 14 Dec 2022 09:38 UTC

P.S. It would be neat to do something like:

(codeset-message (errno ENOENT))

Since the procedure's arglist changes, this would take another SRFI
(which could be an alternative to this one, such that both SRFIs can
query the same underlying codesets).

But I can't find anything in R6RS to get the "name" of an enumeration.
Perhaps something like this would work:

(define-enumeration <errno>
   (EPERM
    ENOENT
    ESRCH
    EINTR
    EIO)
   errno)

(codeset-associate-enum 'errno (errno))

(codeset-message (errno ENOENT))