Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlp4 and class introspection
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Joel Reymont <joelr1@g...>
Subject: camlp4 and class introspection
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