[MOAB-dev] Incomplete types versus void * in ITAPS interfaces

Jed Brown jed at 59A2.org
Sat Sep 6 10:02:57 CDT 2008


Sorry if this is the wrong list for this, but why are all the opaque
handles typedef'd to void * instead of incomplete types.  That is, why
not something like

  typedef struct iBase_EntityHandle_Private *iBase_EntityHandle;

in order to get some extra type checking?  Correct existing code should
not see any difference.  With this change, a possible logic error (using
EntitySetHandle for an EntitySet) in the VisIt plugin would be caught by
the compiler.

Jed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <https://lists.mcs.anl.gov/mailman/private/moab-dev/attachments/20080906/c945b400/attachment.pgp>


More information about the moab-dev mailing list