[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Jonathan Roewen <jonathan.roewen@g...> |
| Subject: | [Caml-list] enumerations & ioctls |
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