caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Friedman Roy <roy@cs.technion.ac.il>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Question about ocamlidl
Date: Mon, 13 Aug 2001 16:51:30 +0200	[thread overview]
Message-ID: <20010813165130.A26750@pauillac.inria.fr> (raw)
In-Reply-To: <Pine.GSO.3.95-heb-2.07.1010812111304.27070D-100000@csa.cs.technion.ac.il>; from roy@cs.technion.ac.il on Sun, Aug 12, 2001 at 11:15:06AM +0300

> Can the OCaml IDL compiler be used in Unix environments that do not
> support (D)COM? Does it still generate usable stubs and proxies that can
> be used to interface C (or other languages) and OCaml?

Yes.  The stub code generated from CamlIDL input files is independent
of COM and work under Unix just as well as under Windows.

(The only caveat is IDL "interface" declarations: they are mapped
to pseudo-objects that can be used portably from C, but can only be
used from C++ if the layout of these pseudo-objects happen to match
those of C++ objects; CamlIDL ensures this for Windows and for gcc 2
under Unix, but I haven't tested with gcc 3.  But if you don't use
interface declarations, or don't use C++, there should be no problems.)

The only parts of CamlIDL that are really dependent upon the COM
runtime are the functions Com.create_instance and Com.register_factory.
These are available only under Windows.

- Xavier Leroy
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


      reply	other threads:[~2001-08-13 14:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-30 11:58 [Caml-list] Objective Caml 3.02 released Xavier Leroy
     [not found] ` <006201c118f2$2898a850$6ec809c0@fabien>
2001-07-30 12:44   ` Xavier Leroy
2001-07-30 18:48 ` Daniel de Rauglaudre
2001-07-31  2:58   ` Jeremy Fincher
2001-07-31 13:17     ` Re[2]: " Stephan Tolksdorf
2001-07-31 11:40       ` Frank Atanassow
2001-08-12  8:15 ` [Caml-list] Question about ocamlidl Friedman Roy
2001-08-13 14:51   ` Xavier Leroy [this message]

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=20010813165130.A26750@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=roy@cs.technion.ac.il \
    /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).