Browse thread
camlp4 and class introspection
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Jonathan Bryant <jtbryant@v...> |
| Subject: | Re: [Caml-list] camlp4 and class introspection |
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