Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] toplevellib.cma broken?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: Re: [Caml-list] toplevellib.cma broken?
Oops, mouse in wrong place on click =P

Anyways, to continue on with my email... I even tried with ocaml:

jonathan@moonbeam:~$ ocaml toplevellib.cma
        Objective Caml version 3.09.0

# Toploop.initialize_toplevel_env();;
- : unit = ()
# let eval txt = let lb = (Lexing.from_string txt) in
  let phr = !Toploop.parse_toplevel_phrase lb in
  Toploop.execute_phrase true Format.std_formatter phr;;
>> Fatal error: eval unbound at toplevel
Fatal error: exception Misc.Fatal_error
jonathan@moonbeam:~$ ocaml toplevellib.cma
        Objective Caml version 3.09.0

# let eval txt = let lb = (Lexing.from_string txt) in
  let phr = !Toploop.parse_toplevel_phrase lb in
  Toploop.execute_phrase true Format.std_formatter phr;;
>> Fatal error: eval unbound at toplevel
Fatal error: exception Misc.Fatal_error

It seems ocaml 3.09.0 has broken toplevellib.cma???

Jonathan

On 12/22/05, Jonathan Roewen <jonathan.roewen@gmail.com> wrote:
> Hi,
>
> I'm trying to use toplevellib in my kernel, and I'm having some -very-
> weird problems.
>
> Here's a sample session on my kernel:
>
> caml> 45;;
> - : int = 45
> caml> print_int 4;;
> Error parsing/evaluating expression: Typecode.Error(_,_)
> caml> 45.67;;
> Error parsing/evaluating expression: Failure("float_of_string")
> caml> 45;;
> Error parsing/evaluating expression: Failure("float_of_string")
>