caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* camlp4 and class introspection
@ 2007-06-09 22:59 Joel Reymont
  2007-06-10  0:14 ` [Caml-list] " Jonathan Bryant
  0 siblings, 1 reply; 11+ messages in thread
From: Joel Reymont @ 2007-06-09 22:59 UTC (permalink / raw)
  To: Caml List

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.

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






^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-06-11 11:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-09 22:59 camlp4 and class introspection Joel Reymont
2007-06-10  0:14 ` [Caml-list] " Jonathan Bryant
2007-06-10 12:30   ` 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

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