From: Eray Ozkural <exa@kablonet.com.tr>
To: art yerkes <ayerkes@speakeasy.net>
Cc: gnu04@yahoo.com, caml-list@inria.fr
Subject: Re: [Caml-list] Interface between Ocaml and C++
Date: Tue, 22 Jun 2004 21:44:47 +0300 [thread overview]
Message-ID: <200406222144.48707.exa@kablonet.com.tr> (raw)
In-Reply-To: <20040622083634.78e2c662.ayerkes@speakeasy.net>
On Tuesday 22 June 2004 16:36, art yerkes wrote:
> In my experience, the C++ and ocaml type systems are different enough that
> determining specializations from caml code won't work well.
>
> Consider that:
>
> std::set<const char *>
> std::set<char [18]>
> std::set<std::string>
>
> are all different specializations of std::set on various representations of
> string in C++. The syntax to choose among them may not be easy for a user
> to write and keep track of.
I agree. What's worse, these combinatorial types can accept only C++ types as
parameters. How to reliably specify that in ocaml client code, it's almost
impossible to know...
Maybe SWIG's approach is a good middleground then? But it makes me wonder, why
should I want to use C++ stdlib if I have ocaml? >:-)
The alternative I thought was a syntax extension to handle it for class and
function templates. But I don't think it's going to work out, either.
Regards,
--
Eray Ozkural (exa) <erayo@cs.bilkent.edu.tr>
Comp. Sci. Dept., Bilkent University, Ankara KDE Project: http://www.kde.org
http://www.cs.bilkent.edu.tr/~erayo Malfunction: http://malfunct.iuma.com
GPG public key fingerprint: 360C 852F 88B0 A745 F31B EA0F 7C07 AE16 874D 539C
-------------------
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
next prev parent reply other threads:[~2004-06-22 18:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-19 4:56 Gu Nu
2004-06-19 7:29 ` art yerkes
2004-06-21 19:24 ` Eray Ozkural
2004-06-22 6:41 ` art yerkes
2004-06-22 11:14 ` Eray Ozkural
2004-06-22 13:36 ` art yerkes
2004-06-22 18:44 ` Eray Ozkural [this message]
2004-06-22 23:06 ` Brandon J. Van Every
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=200406222144.48707.exa@kablonet.com.tr \
--to=exa@kablonet.com.tr \
--cc=ayerkes@speakeasy.net \
--cc=caml-list@inria.fr \
--cc=erayo@cs.bilkent.edu.tr \
--cc=gnu04@yahoo.com \
/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