[前][次][番号順一覧][スレッド一覧][生データ]

yarv-dev-en:303

From: Michal Linhard <michal linhard.sk>
Date: Fri, 25 May 2007 11:23:05 +0200
Subject: [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 quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧][生データ]