[comp.object] Dynamic Compilation

jmaloney@cs.washington.edu (John Maloney) (07/03/90)

Brad cox writes:
>You're asking for an Objective-C *interpreter*.

You bet! It needn't be a compiler; I just want some
way to store and execute code fragements supplied
by the end user of the system. And, yes, by "binding"
I meant "linking the compiled binary files" (that is,
binding the unbound references in the code to actual
memory addresses for library routines, globals,
and the like).

It sounds as though there already is an Objective-C
interpreter. Can this be called from the user's program
at run time? That is, could I store a string in a
"Button" object and then interpret that string when
the user pushes the button? Could I refer to variables
from this program fragement and, if so, how are
these references resolved?

	-- John