Version française
Home     About     Download     Resources     Contact us    
Browse thread
A feature wish on Toplevel directives.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: sejourne_kevin <sejourne_kevin@y...>
Subject: Re: [Caml-list] A feature wish on Toplevel directives.
Eric Stokes a écrit :
> Try this,
> 
> let eval s =
>   let l = Lexing.from_string s in
>   let ph = !Toploop.parse_toplevel_phrase l in
>   assert(Toploop.execute_phrase false Format.err_formatter ph)
> ;;
> 
> eval (sprintf "#use \"%s\";;" p);;
> 
Thanks very mush !


Kévin.

	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com