From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: thierry.bravier@dassault-aviation.fr
Cc: caml-list@inria.fr
Subject: Re: ocamlc command line suggested features
Date: Tue, 30 May 2000 09:50:10 +0900 [thread overview]
Message-ID: <20000530095010G.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: Your message of "Thu, 25 May 2000 09:53:15 +0200" <392CDBEB.5B792F05@dassault-aviation.fr>
From: "thierry BRAVIER" <thierry.bravier@dassault-aviation.fr>
> I have been trying labltk since ocaml-2.99 first with: labltklink
> and now with: ocamlc -I$STDLIB/labltk labltk.cma foo.ml
>
> * First, it made me think that an ocamlc -where option
> (similar to that of camlp4) would be useful to get $STDLIB from ocamlc.
>
> This would make it possible to use:
> ocamlc -I `ocamlc -where`/labltk foo.ml
>
> Remark 1: currently, I get $STDLIB from: (ocamlc -v | some scritpt) which is
> a pain,
Indeed a -where option would be useful, I also have lots of makefiles
using the same script as you, in particular for the install procedure.
But in this precise case, I would prefer the approach suggested by
Sven Luther: to have an abbreviated notation for paths under the
standard library directory.
For instance we could have
ocamlc -I +labltk
Remark that now that we have the autolink mechanism, package path +
library name is all you need to link in a library.
(findlib is certainly more powerful, but it needs some form of
meta-information, which is better handled outside of the compiler)
> * Second, since the documentation for labltk is short I often find myself
> using the toplevel just to check the type of say Tk.pack or
> Scale.configure.
I should have made more evident in the manual that you _must_ use
ocamlbrowser (if labltk works, it works!). Then looking for function
types is trivial. (Don't forget to configure your path to include
the labltk directory.)
> Wouldn't it be nice if we could just say:
> ocamlc -sig labltk.cma
.cma files do not contain typing information, you have to look inside
.cmi files for that. And this is what ocamlbrowser does.
Cheers,
Jacques
---------------------------------------------------------------------------
Jacques Garrigue Kyoto University garrigue at kurims.kyoto-u.ac.jp
<A HREF=http://wwwfun.kurims.kyoto-u.ac.jp/~garrigue/>JG</A>
prev parent reply other threads:[~2000-05-30 20:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-22 23:56 Ocaml library implementing equivalence classes and partial orders nari
2000-05-25 7:53 ` ocamlc command line suggested features thierry BRAVIER
2000-05-29 12:09 ` Sven LUTHER
2000-05-30 0:50 ` Jacques Garrigue [this message]
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=20000530095010G.garrigue@kurims.kyoto-u.ac.jp \
--to=garrigue@kurims.kyoto-u.ac.jp \
--cc=caml-list@inria.fr \
--cc=thierry.bravier@dassault-aviation.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