Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Didier Plaindoux <plaindou@irit.fr>
To: caml-list@inria.fr
Subject: A propos de "this matching case is unused"
Date: Wed, 04 Jun 1997 16:41:57 +0200	[thread overview]
Message-ID: <33957EB5.1BA8@irit.fr> (raw)

N'ayant pas entrevu de message a ce propos je me permet
de poser la question suivante : 

Soit le code suivant (stupide soit mais pas pour le typage)

# fun x -> x
#   | x -> 1 + x
#;;

La reponse est la suivante :

Toplevel input:
>  | x -> 1 + x
>    ^
Warning: this matching case is unused.
- : int -> int = <fun>

Ma question est la suivante : pourquoi prendre en compte
cette branche lors du typage, qui de ce fait instancie le
type de 'x' par 'int' ? 

D. Plaindoux

-- 
o----------o---------------------------------------o
|S.L.O.O.P.|           Didier PLAINDOUX            |
+----------+        mailto:plaindou@irit.fr        |
|  |\_/|   |  http://www.irit.fr/~Didier.Plaindoux |
|  (o O)   |  Tel : 05 61 55 [ 63 56 | 82 09 ]     |    
|   ( )    |  @   : IRIT,UPS 118 route de Narbonne |
|    O     |        31062 Toulouse France          |
o--------------------------------------------------o





             reply	other threads:[~1997-06-04 17:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-04 14:41 Didier Plaindoux [this message]
1997-06-04 17:42 ` Pierre Weis

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=33957EB5.1BA8@irit.fr \
    --to=plaindou@irit.fr \
    --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