JarrettBillingsley
Joined: 20 Jun 2006 Posts: 457 Location: Pennsylvania!
|
Posted: Tue Jan 15, 2008 6:07 pm Post subject: |
|
|
Ugh. I thought you could but I guess all the functions I ever wrapped that "took" enums in reality took a uint. All that really needs to be changed is the type detection in MDValue should see if the base type is in integer/float/whatever instead of the type itself (since enums are, in reality, a typedef).
Long story short it's not a big change, I'll put it in MD2 (beta should be out soon..)
As for the enum itself, you'll have to wrap it manually. I usually use WrapModule.custom with an MDTable as the value. Irritating, but D doesn't provide any compile-time enum introspection capabilities |
|