For this one I'd definitely prefer the UNKNOWN_FLAG of int
trick I think.
Examples of this idea being used in other code:
https://github.com/ocaml/ocaml/blob/0c8e78268821b4949b8574bb1e8ddafa73d19...
https://github.com/libguestfs/hivex/blob/77f4ab4f6314457050429ed72b4c609b...
https://libvirt.org/git/?p=libvirt-ocaml.git;a=blob;f=libvirt/libvirt.mli...
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org