Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Eric Cooper <ecc@cmu.edu>
To: caml-list@yquem.inria.fr, Caml list <caml-list@inria.fr>
Subject: Re: [Caml-list] toplevel with pre-installed printers
Date: Thu, 19 Jan 2006 14:12:59 -0500	[thread overview]
Message-ID: <20060119191259.GB12416@localhost> (raw)
In-Reply-To: <20060119174907.GA309@furbychan.cocan.org>

On Thu, Jan 19, 2006 at 05:49:07PM +0000, Richard Jones wrote:
> On Thu, Jan 19, 2006 at 06:08:06PM +0100, Andrej Bauer wrote:
> > Eric Stokes wrote:
> > > When the toplevel starts up, it evaluates (on unix) ~/.ocamlinit,  
> > > which can contain arbitrary ocaml expressions.
> > 
> > Sorry, I was not clear enough. I know about .ocamlinit. I am going to
> > have several custom ocamltop's and they can't all share the same
> > .ocamlinit. What now?
> 
> We tried to do the same thing and couldn't find a way.  One rather
> nasty suggestion involved a surrounding shell script which would
> launch the right toplevel in the right directory with the right
> .ocamlinit.  It's not pleasant.

In a single "master" .ocamlinit, you could dispatch on
Sys.executable_name, and perhaps Sys.getcwd.  Still a hack, but it
might avoid (non-OCaml) wrapper scripts.

-- 
Eric Cooper             e c c @ c m u . e d u


  reply	other threads:[~2006-01-19 19:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-19 16:28 Andrej Bauer
2006-01-19 16:53 ` [Caml-list] " Daniel Bünzli
2006-01-19 16:57 ` Eric Stokes
2006-01-19 17:08   ` Andrej Bauer
2006-01-19 17:49     ` Richard Jones
2006-01-19 19:12       ` Eric Cooper [this message]
2006-01-19 20:18         ` Richard Jones
2006-01-20  2:24           ` skaller
2006-01-20 16:49             ` David Brown
2006-01-20 19:29               ` skaller
2006-01-20 14:13     ` code17
2006-01-20  8:29 ` [Caml-list] " Jean-Christophe Filliatre
2006-01-20 13:13   ` Gerd Stolpmann
2006-01-19 19:40 Harrison, John R
2006-01-20  1:30 ` skaller
2006-01-20 20:19 Harrison, John R

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060119191259.GB12416@localhost \
    --to=ecc@cmu.edu \
    --cc=caml-list@inria.fr \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox