Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jean-Christophe Filliatre <filliatr@lri.fr>
To: Holger Schulz <schulz@mathematik.uni-siegen.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Declaration
Date: Tue, 4 May 2004 17:27:10 +0200	[thread overview]
Message-ID: <16535.46670.330033.464901@gargle.gargle.HOWL> (raw)
In-Reply-To: <CF8F6CB8-9DDB-11D8-BAC2-000A95C6FE96@mathematik.uni-siegen.de>


Holger Schulz writes:
 > let x ="dhshdjsa";;
 > 
 > let x =2 and y= x+2 in y;;
 > 
 > which of course delivers a type error, coss x isn't overwritten here. 
 > How the syntax for non-simultanous declaration?

  let x = 2 in
  let y = x+2 in
  y;;

-- 
Jean-Christophe

-------------------
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


  reply	other threads:[~2004-05-04 15:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-04 15:00 Holger Schulz
2004-05-04 15:27 ` Jean-Christophe Filliatre [this message]
     [not found] <Pine.LNX.4.44.0405041709220.30470-100000@lcmpc4.epfl.ch>
2004-05-07  9:27 ` Holger Schulz

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=16535.46670.330033.464901@gargle.gargle.HOWL \
    --to=filliatr@lri.fr \
    --cc=Jean-Christophe.Filliatre@lri.fr \
    --cc=caml-list@inria.fr \
    --cc=schulz@mathematik.uni-siegen.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