From: Alain.Frisch@ens.fr
To: Andreas Rossberg <rossberg@ps.uni-sb.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Constructors as functions and tuples in constructors
Date: Wed, 8 Oct 2003 20:28:15 +0200 (MET DST) [thread overview]
Message-ID: <Pine.SOL.4.44.0310082023370.10700-100000@clipper.ens.fr> (raw)
In-Reply-To: <3F843C6E.8060407@ps.uni-sb.de>
On Wed, 8 Oct 2003, Andreas Rossberg wrote:
> That is not true. It would be quite trivial for the compiler to translate
>
> A z -> e
>
> into the equivalent of
>
> A(z1,z2) -> let z = (z1,z2) in e
Maybe:
A _ as z -> e
would be enough (well, not for typechecking, of course) and avoid an extra
allocation. The idea is that any piece of code working on a pair (z1,z2)
can also work on A(z1,z2) since the runtime repsentation is the same,
except the tag which is not used.
-- Alain
-------------------
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
next prev parent reply other threads:[~2003-10-08 18:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-08 15:57 Serge
2003-10-08 16:07 ` Dan Grossman
2003-10-08 16:33 ` Andreas Rossberg
2003-10-08 17:05 ` Dan Grossman
2003-10-09 12:40 ` Andreas Rossberg
2003-10-08 18:28 ` Alain.Frisch [this message]
2003-10-08 18:44 ` Marcin 'Qrczak' Kowalczyk
2003-10-08 16:13 ` Michal Moskal
2003-10-08 16:25 ` Nicolas Cannasse
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=Pine.SOL.4.44.0310082023370.10700-100000@clipper.ens.fr \
--to=alain.frisch@ens.fr \
--cc=caml-list@inria.fr \
--cc=rossberg@ps.uni-sb.de \
/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