type "enum{}"

From: DaveNlp ((NOSPAM)uni512web_at_iol.it)
Date: 11/30/03


Date: Sun, 30 Nov 2003 18:41:04 GMT

In C language exist the type 'enum'.
An example,

typedef enum { btZero, btStatic, btActive } BLOCK_TYPE;

Does an equivalent thing (in Lisp) exists??
There is a way in order to make the type "Enum"?

Thanks in advance.
DaveNlp



Relevant Pages

  • Re: type "enum{}"
    ... >>In C language exist the type 'enum'. ... > Often I read text writing form C-programmer who have a look at lisp and ...
    (comp.lang.lisp)
  • Re: Why is this allowed in C?
    ... > typedef enum ... NUMBERS is a type which can have the values of all enumeration constants ... typedef enum sortingalgos {START=-1, ... typedef int ...
    (comp.lang.c)
  • Size limit of enum type?
    ... in my standard scanner/parser package I am using a typedef enum to ... The nice thing is that one can denote sets of tokens by binary or, ... I was wondering if the current C standard says anything ...
    (comp.lang.c)
  • Re: Throwing a event with a nested UDT
    ... Enum value can be negative of course. ... VARIANT in lieu of the nested struct, ...
    (microsoft.public.win32.programmer.ole)
  • Re: which object orient language is most suitable for embedded programming?
    ... typedef enum, for example, produces a range of values which are of type int. ... The variable takes on the type int. ... Some compilers have switches to select 8 or 16 bit enums, but it's not a general solution. ...
    (comp.arch.embedded)