guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Enumeration in GUILE


From: dv . praveen
Subject: Enumeration in GUILE
Date: Thu, 9 Oct 2003 12:55:45 +0530

hi all,

I am creating new data types using smobs
in my application.  In the process I have
used some enums like

typedef enum { FIRST, SECOND, THIRD, NONE) CHOICE;

Is it possible to get these enums recognized by GUILE.
For instance, I have my own function,
"my-choice-is" which I would like to use it as.

guile> (my-choice-is FIRST)

If it is not possible is there a hack how I can use
it?

regards,
Praveen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]