Michal Linhard | 25 May 11:23
Picon

[yarv-dev-en:303] instance_eval, class_eval features in yarv

hi. my boss gave me the task to look at ruby to see if it is suitable
for development of an object oriented system/framework he is
considering... he comes from smalltalk background, so when he says
object oriented, he really means it.

so far, i've learnd how to use Class.class_eval and Object.instance_eval
to dynamically add behavior to existing classes and objects. this
on-line method reimplementation is one of the main arguments for using
ruby in possible future projects

i don't know how the interpreter handles these language features. i have
only general knowledge about compilers, and i can't imagine how this can
be handled by a virtual machine. my question is:

can I anticipate full support of such features in YARV?
if somebody is in explaining mood, can you briefly explain how this
dynamic code evaluation is solved on interpreter/compiler/vm level? or
guide me to some documentation/papers/resources?

thanks very much
michal

--
ML: yarv-dev-en@...
Info: http://www.atdot.net/~ko1/quickml


Gmane