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
may be an other bug
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Franck Delaplace <delapla@l...>
Subject: may be an other bug

I built a script shell to add signature to .mli 
as follow

When I use it for global variabale as hash table 
the signature is 

let L = hashtbl__new 30 ;;

L : hashtbl__t  _a 

instead of the real instantion of L 

if test -f $
	echo $1.mli  "transformation  en cours"
	echo le fichier $ n existe pas

sed '/$1/d' $|sed '/\#open/w .tmp' > /dev/null #recuperation des open sauf les open ayan comme nom le fichier passe

if test -f $1.mli
	camlc -c $1.mli			# on compile le fichier .mli
	echo "(* -------------------------------*)" >.tmp
	cat $1.mli >> .tmp		# insertion dans .tmp du fichier	

echo "(* fonction de  $  -----------------*)" 	>>.tmp
camlc  -c -i $ >> .tmp
mv .tmp  $1.mli

echo "verifier le fichier genere "