From: Jonathan Bryant <jtbryant@valdosta.edu>
To: Joel Reymont <joelr1@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] camlp4 and class introspection
Date: Sat, 9 Jun 2007 20:14:31 -0400 [thread overview]
Message-ID: <A5E0A017-9262-4812-987C-FF9DCA675915@valdosta.edu> (raw)
In-Reply-To: <A626AEDA-54B0-4D1D-B123-18636662749E@gmail.com>
On Jun 9, 2007, at 6:59 PM, Joel Reymont wrote:
> Is it possible to add code to a class's initialization section
> using camlp4?
>
> I would like to introspect the class definition to print instance
> variable names and types. Then I would like to introspect the methods.
I don't think this would be possible since CamlP4 happens before type
inference and therefore knows nothing about types.
>
> If anyone could give an example of how this is done with camlp4
> 3.10 I would really appreciate it!
>
> To explain a bit, I would like to make sure that each defined class
> is registered with the Objective-C runtime, only once, not per
> object instantiation.
>
> Thanks, Joel
>
> --
> http://topdog.cc - EasyLanguage to C# translator
> http://wagerlabs.com - Blog
>
>
>
>
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
next prev parent reply other threads:[~2007-06-10 0:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-09 22:59 Joel Reymont
2007-06-10 0:14 ` Jonathan Bryant [this message]
2007-06-10 12:30 ` [Caml-list] " Joel Reymont
2007-06-10 20:02 ` Yaron Minsky
2007-06-10 21:18 ` Joel Reymont
2007-06-10 22:07 ` Yaron Minsky
2007-06-11 0:58 ` Jacques GARRIGUE
2007-06-11 8:05 ` Joel Reymont
2007-06-11 10:11 ` Martin Jambon
2007-06-11 10:16 ` Joel Reymont
2007-06-11 11:36 ` Martin Jambon
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=A5E0A017-9262-4812-987C-FF9DCA675915@valdosta.edu \
--to=jtbryant@valdosta.edu \
--cc=caml-list@yquem.inria.fr \
--cc=joelr1@gmail.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;
as well as URLs for NNTP newsgroup(s).