Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Jakob Lichtenberg" <jl@itu.dk>
To: "Christopher Quinn" <cq@htec.demon.co.uk>
Cc: <caml-list@inria.fr>
Subject: Re: [Caml-list] camlidl - finalizing cows without COM!
Date: Thu, 18 Apr 2002 20:13:36 -0700	[thread overview]
Message-ID: <000901c1e750$33012ec0$5ba4389d@redmond.corp.microsoft.com> (raw)
In-Reply-To: <3CBEE681.9090404@htec.demon.co.uk>

Dear Christopher,

Thanks a lot for your help, I can now produce and garbage collect all the
cows I would ever dream of!

There are still a couple of open issues.  My current favourite would be:


Who declares what?!?


The CamlIDL User's manual Sec. 3.8 tells me what prototypes to implement: a
c2ml and an ml2c function.  And then I can use them using the following IDL
declaration (in cow.idl):
  typedef [abstract,c2ml(cow_c2ml), ml2c(cow_ml2c)] int cow;

However I need to declare and implement cow_c2ml and cow_ml2c, right?  I
cannot do that directly in the IDL file since the IDL types does NOT contain
the 'value' type.  I needed to put them in a separate module and then
include them using a quote declaration:

  quote(h,"#include \"cow_marshalling.h\"")

That opened up for a bunch of new entertaining stuff since the c2ml and ml2c
declarations uses an (according to the manual 'internal'?!?) type
'camlidl_ctx' which is declared in the camlidlruntime.h header file.  A file
that I as a 'user' to the best of my knowledge should not include
manually...

Anyway, having made a bunch of strange declarations and includes everything
now basically ROCKS.  CamlIDL have cut 50% of my source code and made
everything so much cooler, thanks Xavier Leroy and Christopher!!!

- Jakob


-------------------
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


  reply	other threads:[~2002-04-19  3:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-17  3:42 Jakob Lichtenberg
2002-04-18 15:30 ` Christopher Quinn
2002-04-19  3:13   ` Jakob Lichtenberg [this message]
2002-04-26  8:20 ` Xavier Leroy

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='000901c1e750$33012ec0$5ba4389d@redmond.corp.microsoft.com' \
    --to=jl@itu.dk \
    --cc=caml-list@inria.fr \
    --cc=cq@htec.demon.co.uk \
    /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