caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: skaller <skaller@users.sourceforge.net>
To: Nicolas Cannasse <ncannasse@motion-twin.com>
Cc: Florent <florentflament@aist.enst.fr>, caml-list@inria.fr
Subject: Re: [Caml-list] strange behavior with record type definition
Date: Sat, 12 Nov 2005 23:51:30 +1100	[thread overview]
Message-ID: <1131799890.18524.14.camel@rosella> (raw)
In-Reply-To: <4375DDFC.9060802@motion-twin.com>

On Sat, 2005-11-12 at 21:20 +0900, Nicolas Cannasse wrote:
> >>Mmhh, why do we have to use differents label names in distinct record 
> >>types ?
> > 
> > 
> > So that the type of an expression:
> > 
> > 	{ x = 1; y = 2 }
> > 
> > can be determined.
> 
> It could still be determined using all the labels together instead of 
> the first one only, but that will not go well with the { r with ... } 
> construct.

Hmmm .. but that must have the type of r, so if you had
a 'multi-label' solution this would be quite nice, since
it would help constrain the type of r.

In a whole program analyser this would always be enough:
if there is any doubt due to some unused fields, then those
fields would just be dropped since they're not used .. :)

[Felix will do this for classes, not so much by design
as because that's how the instantiator works ..]

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net


  reply	other threads:[~2005-11-12 12:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-11 22:59 Florent
2005-11-11 23:52 ` [Caml-list] " Jon Harrop
2005-11-12  0:15 ` Michael Wohlwend
2005-11-12  0:20 ` Martin Jambon
2005-11-12 10:58   ` Florent
2005-11-12 12:12     ` skaller
2005-11-12 12:20       ` Nicolas Cannasse
2005-11-12 12:51         ` skaller [this message]
2005-11-12 14:15           ` Michael Wohlwend
2005-11-12 14:45             ` skaller
2005-11-12 15:26             ` Christophe TROESTLER
2005-11-12 14:23           ` Florent
2005-11-12 15:32             ` Christophe TROESTLER
2005-11-12 16:50             ` Florian Weimer
2005-11-13  0:12             ` Jacques Garrigue
2005-11-13 12:50               ` Florent

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=1131799890.18524.14.camel@rosella \
    --to=skaller@users.sourceforge.net \
    --cc=caml-list@inria.fr \
    --cc=florentflament@aist.enst.fr \
    --cc=ncannasse@motion-twin.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).