This may be a bit of a twisted idea...
This may be a bit of a twisted idea...
- Subject: This may be a bit of a twisted idea...
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 2 Jul 2001 00:54:12 -0700
So, I'm poking around in NSMethodSignature, NSInvocation, and other
arcane stuff in the Foundation kit and it occurs to me that interpreting
Obj-C method calls (a'la' Perl's "eval" operator) is quite feasible.
What I have in mind doesn't achieve the full power of the C language,
but if I were to take a page from SmallTalk and implement -ifTrue:,
-ifFalse: and loops that use NSEnumerators, then I've got
Turing-complete scripting in Obj-C, don't I?
Comments?
-jcr
[Objc retain];