English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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 <Xavier.Leroy@inria.fr> 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 caml-list-request@inria.fr.  Archives: http://caml.inria.fr