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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-05-28 (17:01)
From: Dave Mason <dmason@s...>
Subject: Re: [Caml-list] lisp -> ocaml
>>>>> On Sun, 27 May 2001 15:01:19 +0200, Xavier Leroy <> said:

> With some trickery, you can even implement atoms with property
> lists, type safe but dynamically typed of course.  See the code
> below.  (Warning: the implementation of properties is a real
> mind-twister, using a folklore trick to implement dynamics using
> references and functions that I learnt from Daniel de Rauglaudre,
> although it's been reinvented independently quite a number of
> times.)

Very cute!  But not threadsafe among threads that use the same set of
attributes (unless I missed something).  I point this out simply as a
warning, not because I think it invalidates the (neat) trick.

To unsubscribe, mail  Archives: