caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] enumerations & ioctls
@ 2005-06-30 11:14 Jonathan Roewen
  2005-06-30 13:06 ` Richard Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Roewen @ 2005-06-30 11:14 UTC (permalink / raw)
  To: caml-list

Hi,

I'm about to endeavour into designing a driver interface for my OS
project, and I have some questions about making a type-safe ioctl-like
function.

Since different device types have different sets of ioctl calls it can
accept, I need to be able to have a structure that I can put different
devices into, implying the enumerations aren't identical.

Is the best way to achieve this with those polymorphic variants? And
how much does this affect type safety?

Jon


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-01  3:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-30 11:14 [Caml-list] enumerations & ioctls Jonathan Roewen
2005-06-30 13:06 ` Richard Jones
2005-07-01  3:18   ` Jonathan Roewen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).