Next Previous Up Top Contents Index

A.4 Mapping in more detail

A.4.12 Mapping for enum

An IDLenum is mapped to a Lisp type whose name is the corresponding scoped symbol.

Each member of theenum is mapped to a symbol with the same name as that member whose home package is the keyword package.

For example, in IDL:

module example{
  enum foo {hello, goodbye, farewell};
};

In generated Lisp:

(defpackage :example)
(deftype example:foo ()
 '(member :hello :goodbye :farewell))

And in use:

(typep :goodbye 'example:foo)
> T

(typep :not-a-member 'example:foo) > nil


Developing Component Software with CORBA - 22 Jan 1999

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker