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] pipe puzzle
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-02-22 (23:29)
From: Issac Trotts <ijtrotts@u...>
Subject: Re: [Caml-list] pipe puzzle
Gerd Stolpmann wrote:

>Am Sam, 2003-02-22 um 06.05 schrieb Issac Trotts:
>>You're right.  Even ledit-1.11, which can handle suspend, cannot
>>handle (echo "let x=1;;"; ledit) | ocaml.  So now I simply use ledit ocaml
>>with ledit 1.11 and momentarily forget my wish to have a few commands
>>(not inside a module) that always run on startup.
>You can put these commands into .ocamlinit (see docs about the
>toplevel system).
Thanks for the hint.  In the source for the toplevel, it says

  if Sys.file_exists ".ocamlinit" then ignore(use_silently ppf ".ocamlinit")

It would be nice if it opened ~/.ocamlinit but it's no big deal because the
alias can just be

  alias o='cp ~/.ocamlinit .ocamlinit; ledit ocaml'

So, as usual, OCaml can do what I want.  


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