Sven Panne <[EMAIL PROTECTED]> writes: 
> 
...
> 
> > (HDirect doesn't currently allow you to map enums to newtypes of Int
> > (say), but it could. No big deal).
> 
> Hmm, IMHO it's not enum that should be mapped to newtype but a simple
> typedef: Enums have a certain bounded set of possible values while
> something like 'typedef unsigned long off_t' has not (at least
> conceptually). I consider the automatic wrapping/unwrapping into
> newtypes as a crucial feature of any kind of type-safe IDL, so it
> should definitely included into H/Direct.
> 

That's a different issue; you can use 'interface {}' decls to achieve
this kind of type safety.

--sigbjorn

Reply via email to