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
module type...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-11-12 (16:33)
From: luc.maranget@i...
Subject: Re: [Caml-list] Specifying abstract type in a record
> OK,  Here's what I'm trying to do:
> 
> # type doer = { file_name:string ; actor: ('a -> unit) };;
> 

Try this
type 'a doer = { file_name:string ; actor: ('a -> unit) };;

-- Luc