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
FW: [Caml-list] newbie questions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-08-22 (18:23)
From: Collin Monahan <cmonahan@f...>
Subject: FW: [Caml-list] newbie questions

Taking into account Neel Krishnaswami's advice that it would be actually
helpful to mail my questions to the list, I'm sending some.

I hope I don't end up irritating people! 


-----Original Message-----
From: Collin Monahan [] 
Sent: Wednesday, August 22, 2001 14¤24
To: 'Felix Terkhorn'
Subject: RE: [Caml-list] newbie questions



Well, here's a few things I don't understand right now.

 let chan = open_in "foobar"
with Sys_error ->
 print_string "error opening file\n";;

This doesn't work. I think it might be because the stuff in the first
part doesn't evaluate to the same type as the stuff in the second part.
I also wonder if it might have something to do with how in the
documentation, lots of exceptions are described as, for example
	exception Stack_overflow
but for Sys_error it says
	exception Sys_error of string

Why does it say, when I type into the toplevel,
that the constructor expects an argument?


-----Original Message-----
From: Felix Terkhorn [] 
Sent: Wednesday, August 22, 2001 14¤09
To: Collin Monahan
Subject: Re: [Caml-list] newbie questions


I can try to answer some of your questions, but I won't guarantee that I
know a terrible amount. ;)  I'm also using linux, so any non-linux
OS-specific stuff I won't be able to answer.

Felix Terkhorn

'(felix-terkhorn .

Bug reports:  FAQ:
To unsubscribe, mail  Archives: