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
[Caml-list] 1) "open" in modules, 2) buffer enhancement.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: dmitry grebeniuk <gds@v...>
Subject: [Caml-list] 1) "open" in modules, 2) buffer enhancement.

  When I'm trying to compile such file:
module M =
  let open () = print_string "open called\n"

 end;; ();;
  I get errors like

File "", line 3, characters 6-10:
Syntax error

  It is the location of "open" function.  I think it's a parser's bug - am
I right?  Will it be fixed in next OCaml releases?

  I have modified standart and buffer.mli - I've added
functions "get_line" (gets next line from buffer or raises Not_found
if there's no line) and "get_block" (gets specified number of characters
to pre-allocated string).  I think these functions will be useful not only
for me - can you add them (or their analogs) to standart distribution as
Buffer's modification or as some new module (Fifobuff, for example)?


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: