caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Carette <carette@mcmaster.ca>
To: bluestorm <bluestorm.dylc@gmail.com>
Cc: Goswin von Brederlow <goswin-v-b@web.de>,
	Till Varoquaux <till@pps.jussieu.fr>,
	caml-list@inria.fr
Subject: Re: [Caml-list] Why is this allowed?
Date: Wed, 09 Jun 2010 11:31:29 -0400	[thread overview]
Message-ID: <4C0FB3D1.4020103@mcmaster.ca> (raw)
In-Reply-To: <AANLkTimWZQI412cICMhJqkzdTG3W8rBqE5qLVNs3lbAP@mail.gmail.com>

bluestorm wrote:
> It is actually not the case that type structure items can be shadowed :
>
> # module A = struct type t = int;; type t = int end;;
> Error: Multiple definition of the type name t.
>        Names must be unique in a given structure or signature.
>

Exactly.  My desired would be for this non-shadowing restriction to be 
extended to all types, not just type structure items.

Shadowing at the value level is an entirely different issue, and is 
perfectly fine as it is.

Jacques


      reply	other threads:[~2010-06-09 15:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-31 14:46 Jacques Carette
2010-05-31 15:06 ` [Caml-list] " Lukasz Stafiniak
2010-05-31 15:48   ` Jacques Carette
2010-05-31 15:43 ` Till Varoquaux
2010-05-31 15:54   ` Jacques Carette
2010-06-09 15:11     ` Goswin von Brederlow
2010-06-09 15:17       ` bluestorm
2010-06-09 15:31         ` Jacques Carette [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=4C0FB3D1.4020103@mcmaster.ca \
    --to=carette@mcmaster.ca \
    --cc=bluestorm.dylc@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=goswin-v-b@web.de \
    --cc=till@pps.jussieu.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).