From: Keiko Nakata <keiko@kurims.kyoto-u.ac.jp>
To: caml-list@inria.fr
Subject: Re: [Caml-list] pattern match on class?
Date: Fri, 25 Nov 2005 14:31:40 +0900 (JST) [thread overview]
Message-ID: <20051125.143140.50050315.keiko@kurims.kyoto-u.ac.jp> (raw)
From: skaller <skaller@users.sourceforge.net>
>We have anonymous objects now .. but can one pattern
>match on a class as one can on a record?
I might not understand you correctly,
but I think it is impossible
if you want something like "instance of" in Java.
Because the run-time does not carry type information of values,
it has no way to know the exact type of an object,
nor whether an object is an instance of a particular class.
Keiko NAKATA
next reply other threads:[~2005-11-25 5:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-25 5:31 Keiko Nakata [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-11-23 19:52 skaller
2005-11-25 6:13 ` [Caml-list] " brogoff
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=20051125.143140.50050315.keiko@kurims.kyoto-u.ac.jp \
--to=keiko@kurims.kyoto-u.ac.jp \
--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