caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Michaël Grünewald" <michael-grunewald@wanadoo.fr>
To: caml-list@inria.fr
Subject: [Caml-list] Re: We should start using -pack by default when building libraries, (was : Re: Meta module in findlib and the need for namespaces)
Date: 29 Sep 2002 07:27:05 +0200	[thread overview]
Message-ID: <87it0pqsba.fsf@ketanu.dyndns.org> (raw)
In-Reply-To: <20020926110058.GA16817@dpt-info.u-strasbg.fr>

Sven <luther@dpt-info.u-strasbg.fr> writes:

[...]

> > But what if you compile only one module ? If you compile a.ml ocamlc -c
> > -o unnom.cmo a.cmo will act like ocamlc -pack -o unnom.cmo -c a.cmo and
> > i will have to access the A module through Unnom.A which is very
> > disturbing, isn't it ?
> 
> Well, no, it would be used by default only when building libraries (.cma
> and such).

This makes more sense when limiting this behaviour to libraries

[...]

> > I cannot understand why you wish a so strange behaviour, and
> 
> Does it makes more sense if limited to libraries ?

Yes it does !


[...]

> Like i said before, because the enabling by default is only for building
> .cmas. Sorry about the confussion.

Confussion has been wiped out :)

[...]

> > This sounds hairy (i mean: i am frightened !) ! 
> 
> Yes, sure, better to have it all work for all plateforms ...
> 
> > How can you write Makefile that can compile an application on any
> > installation, when the change you eask about is applied (if i understand
> > it). 
> 
> With conditional rules depending on the result of ocamlc -pack-default
> or something such ?

This will lead users to write more advanced makefile stuff, they will not
necessarily bother.

> > you determine if the default behaviour is to pack or not to
> > you set a variable OCAMLC according to what you expect the compiler to do.
> > you use the OCAMLC variable in the place of `ocamlc' program
> 
> Or like that also, but the definition of OCAMLC could be conditional.
> And anyway, it would be ocamlmklib which we redefine.

Oc.


[...]

> Ok, i hope this mail will lift the misunderstanding now.

It did !
> 
> Friendly,

Bye !
-- 
Michaël Grünewald <michael-grunewald@wanadoo.fr>  - RSA PGP Key ID: 0x20D90C12
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2002-09-29 18:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-17 14:47 [Caml-list] Meta module in findlib and the need for namespaces Alessandro Baretta
2002-09-22 21:29 ` Gerd Stolpmann
2002-09-23  8:43   ` We should start using -pack by default when building libraries, (was : Re: [Caml-list] Meta module in findlib and the need for namespaces) Sven LUTHER
2002-09-23 14:36     ` Xavier Leroy
2002-09-24  6:30       ` Sven LUTHER
2002-09-25  4:48         ` [Caml-list] Re: We should start using -pack by default when building libraries, (was : " Michaël Grünewald
2002-09-25  9:32           ` Sven LUTHER
2002-09-25 19:33             ` Michaël Grünewald
2002-09-26 11:00               ` Sven
2002-09-29  5:27                 ` Michaël Grünewald [this message]
2002-09-23 15:03     ` [Caml-list] Re: We should start using -pack by default when building libraries John Carr

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=87it0pqsba.fsf@ketanu.dyndns.org \
    --to=michael-grunewald@wanadoo.fr \
    --cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).