caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jeremie Dimino <jdimino@janestreet.com>
To: Junsong Li <ljs.darkfish@gmail.com>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Can we implement #load to load dependencies automatically?
Date: Fri, 29 Apr 2016 11:28:19 +0100	[thread overview]
Message-ID: <CANhEzE5QQHu8T-6pb_P4d6praQyYnr+0hbqAgbGeZXL2he9MNw@mail.gmail.com> (raw)
In-Reply-To: <CA+kGxtPL63H98XHG_1h2WBaw06VoE_=zAMMVBuoYwqnoO9UuhA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 485 bytes --]

If all dependencies are in the search path, you should be able to use
`#load_rec`, which does exactly this

On Fri, Apr 29, 2016 at 5:57 AM, Junsong Li <ljs.darkfish@gmail.com> wrote:

> Hi list,
>
> I am wondering why we can't make #load to load everything needed
> automatically, given object files already in the search path.
>
> FYI, currently, it only shows the error (t opens B and uses B.x)
>
> utop # #load "t.cmo";;
> Error: Reference to undefined global `B'
>



-- 
Jeremie

[-- Attachment #2: Type: text/html, Size: 1045 bytes --]

  reply	other threads:[~2016-04-29 10:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-29  4:57 Junsong Li
2016-04-29 10:28 ` Jeremie Dimino [this message]
2016-04-29 10:54   ` Gabriel Scherer
2016-04-30  1:54     ` Junsong Li

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=CANhEzE5QQHu8T-6pb_P4d6praQyYnr+0hbqAgbGeZXL2he9MNw@mail.gmail.com \
    --to=jdimino@janestreet.com \
    --cc=caml-list@inria.fr \
    --cc=ljs.darkfish@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).