This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: enums


We new have a working define-enum macro,
as contributed by Jamison Hope.  Thank you Jamison!

Documentation is not yet written, but the basic format is
as discussed:
   (define-enum TYPENAME OPTION-PAIR... (E0 ... EN) OTHER-DEFS...)
This doesn't yet support all the features of Java's enum definition,
but it should provide the basic functionality and then some.

Some test-cases would be nice.  Either adding them to lib-test.scm
or perhaps a separate emum-test.scm - perhaps depending on how
many tests we get.  Anyone feel inspired?
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]