Browse thread
Private types
[
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: | 2008-10-30 (21:47) |
From: | Jérémie Dimino <jeremie@d...> |
Subject: | Re: [Caml-list] Private types |
"David Allsopp" <dra-news@metastack.com> writes: > I thought that the point of private types was that you could > deconstruct them... so values of type M.t are valid wherever an int > is used but not the converse. It should probably be ok for immutable data but not for mutable ones. One example is using String.set on a private string. Jérémie