caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: JayR <jcriddle4@home.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] native code debugging
Date: Wed, 08 Aug 2001 19:36:04 -0600	[thread overview]
Message-ID: <3B71E904.4016B6E7@home.com> (raw)
In-Reply-To: <4.3.2.7.2.20010808113426.02901510@shell16.ba.best.com>


Is the following a side effect of defining these
at the top level?

        Objective Caml version 3.02

# let id x = x;;
val id : 'a -> 'a = <fun>
# let id2 = id id;;
val id2 : '_a -> '_a = <fun>
# id2 7;;
- : int = 7
# id2 "w";;
This expression has type string but is here used with type int


# let id2 = id id;;
val id2 : '_a -> '_a = <fun>
# id2 "w";;
- : string = "w"
# id2 7;;
This expression has type int but is here used with type string
#
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


  reply	other threads:[~2001-08-09  1:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-08 18:35 Chris Hecker
2001-08-09  1:36 ` JayR [this message]
2001-08-09  7:08   ` Florian Hars
2001-08-09  7:10   ` False polymorphic (was: Re: [Caml-list] native code debugging) David Mentre

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=3B71E904.4016B6E7@home.com \
    --to=jcriddle4@home.com \
    --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).