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] let rec
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-01-18 (16:22)
From: Vitaly Lugovsky <vsl@o...>
Subject: Re: [Caml-list] let rec
On Sat, 18 Jan 2003, Damien Doligez wrote:

> > The similar problem arises in a case
> > let ring l = let rec r = l@r in r
> > OCaml type system can not understand that the design is
> > safe.
> But it is not unconditionally safe.  Its safety depends on how
> you defined the @ function.  O'Caml doesn't want to look at
> the definition of @ because separate compilation is a very
> important feature.

 And why not declare safety flags in the .cmi files?
It's even possible to declare side-effects existance (but, there
will be some problems with bindings).

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