Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] enumerations & ioctls
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-06-30 (11:14)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: [Caml-list] enumerations & ioctls

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

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?