caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Francois Rouaix <frouaix@liquidmarket.com>
To: Norman Ramsey <nr@eecs.harvard.edu>
Cc: caml-list@inria.fr
Subject: Re: Ocaml secrets
Date: Wed, 12 Jan 2000 14:35:00 -0800	[thread overview]
Message-ID: <200001122235.OAA22558@fiji01.liquidmarket.com> (raw)
In-Reply-To: Your message of "Wed, 12 Jan 2000 10:31:22 EST." <200001121531.KAA30840@wally.eecs.harvard.edu>

> Please tell me where in the OCaml manual I could have discovered
> the ability to write
> 
>   tm.Unix.tm_hour

Well, the online manual says

    label ::= label-name
           |  module-path .  lowercase-ident

at http://pauillac.inria.fr/ocaml/htmlman/manual009.html

and expr ::= ... | expr.label
at http://pauillac.inria.fr/ocaml/htmlman/manual013.html

I'd say it's a matter of faith in the regularity of the compiler (or 
its authors, hi guys, how are you) ;-)
Since we know that a language object (except modules and weird things like
method names) always lives in some module, and since we know that we can use 
M.x to access value x in module M, we should expect M.l to be valid to refer
to label l in module M.


--f





      parent reply	other threads:[~2000-01-13 16:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-12 15:31 Norman Ramsey
2000-01-12 17:56 ` David Brown
2000-01-12 22:35 ` Francois Rouaix [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=200001122235.OAA22558@fiji01.liquidmarket.com \
    --to=frouaix@liquidmarket.com \
    --cc=caml-list@inria.fr \
    --cc=nr@eecs.harvard.edu \
    /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).