Browse thread
Eliminating array bounds check
-
oleg@p...
-
Alain Frisch
- Alain Frisch
-
oleg@p...
- Jonathan Roewen
- skaller
-
Alain Frisch
[
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: | 2006-09-06 (05:15) |
From: | Jonathan Roewen <jonathan.roewen@g...> |
Subject: | Re: [Caml-list] Eliminating array bounds check |
> I can hide this code in a trusted kernel: I merely need to be able to > generate unique types. Frankly, what bsearch code really needed is > local generative modules -- something like (in SML notation) > > val test = let local structure A = Kernel(val a = ...) > open A in ... end in ... > > According to my reading of the Definition of the Standard ML, this is > allowed. Alas, neither SML/NJ nor Poly/ML support this pattern. I don't understand what the 'generative' part means, but are modules defined inside a let binding equivalent to the above? Jonathan