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] Type Safety and Interruptions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oleg Trott <oleg_trott@c...>
Subject: [Caml-list] Type Safety and Interruptions

Are there any guarantees about type safety even when program execution is 

As a simple example, suppose f is a function that modifies its argument 
(array) frequently, x is some value, and I type in the toplevel:

# (* ..... *)
#  let a = Array.make 100000 x;;
#  f a;;

and interrupt it before f finishes. Is it at all possible for array "a" to 
be in some odd state when its `value' is inconsistent with its type?

What if "f" also contains calls to foreign (C/FORTRAN) functions?

Thanks in advance

Oleg Trott <>

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: