From: Ivan Gotovchits <ivg@ieee.org>
To: caml-list@inria.fr
Subject: [Caml-list] Warning 28.
Date: Wed, 05 Jun 2013 09:26:03 +0400 [thread overview]
Message-ID: <87sj0xqgb8.fsf@golf.niidar.ru> (raw)
After switching to a newer version of Ocaml I've started to receive
some interesting warnings on my old codebase. And there is one warning
that I do not understand. I have the following patter matching:
...
| Ref n -> ...
...
where Ref is:
type t =
...
| Ref of int
Compiler issues me a warning:
«Warning 28: wildcard pattern given as argument to a constant constructor»
Sorry, but if I understand this wording correctly, then I do not see
anything criminal in issuing a wildcard pattern to a constant
constructor. What is wrong?
--
(__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
...."Have you mooed today?"...
next reply other threads:[~2013-06-05 5:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-05 5:26 Ivan Gotovchits [this message]
2013-06-05 6:54 ` Virgile Prevosto
2013-06-05 7:04 ` Ivan Gotovchits
2013-06-05 7:22 ` Alain Frisch
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=87sj0xqgb8.fsf@golf.niidar.ru \
--to=ivg@ieee.org \
--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).