Hi guys,

today I have commited to the NativeBoost repository a new core class, the NBExternalEnumerationType,�
which reifies the enum declarations in C and offers a nice interface (especially in terms of debug/inspect).

To use it just subclass the NBExternalEnumeration and add an #enumDecl method to the class side such as:

NBExternalEnumeration subclass: #NBTestEnumeration
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'NativeBoost-Tests'

NBTestEnumeration�class>>enumDecl
^ {(#AAA -> 1).
(#BBB -> 2).
(#CCC -> 3).
(#DDD -> 2400)} asDictionary�

DO NOT FORGET to call the #initialize method on your class. The rest is automatically done ;)

You can use your new enum in two ways:
The NBExternalEnumeration implements��(instance and class)�some more API methods like:
Having this already gives us a nice interface to working with enums. Now I plan to improve a little bit on performance and usage scenarios:
So that will be for now. Feel free to try it out and send me any comments and/or improvement ideas, It will be my pleasure to improve it.�
Cheers,
--
Dr. Ciprian TEODOROV
Ing
nieur�D�veloppement�CAO

t�l : 06 08 54 73 48

mail :�ciprian.teodorov@gmail.com
www.teodorov.ro