Hi Philippe,
Thanks for the quick response. I have spent some time looking at the
internals of F-Script, and I don't really see a clean way of
implementing those in Objective-C. As you said, the allClasses
functionality is easy, simply a matter of wrapping the appropriate
objc_ calls. However, the others are a different matter.
I know of no such queries that expose object type information, and yet
F-Script somehow does exactly that upon executing a method-- if the
incorrect type is given, the executor's error message contains
information stating the correct type. Even more amazingly, when given
the correct object but incorrect content (say an NSArray with
NSStrings when it was supposed to be an NSArray with NSDictionaries),
it displays errors about the incorrect usage of the contained data due
to a call from within a foreign method. I imagine this is accomplished
through the use of categories, however I haven't completely figured
out the flow of F-Script yet, and where the type information is first
exposed.
I'm pretty certain most of the functionality I'm trying to get must be
implemented in a category overriding NSObject methods (especially
tracking all active objects), but it warrants more investigation. The
progress is somewhat slow, unfortunately.
Will