Skip to content
Prev 157853 / 398500 Next

namespaces

On Thu, Oct 2, 2008 at 11:26 AM, Alexy Khrabrov <deliverable at gmail.com> wrote:
Read the proto vignette and other info to get a better understanding
of the prototype model
of object oriented programming.  See the home page at
http://r-proto.googlecode.com

Certainly one can attach and detach objects although its not clear
whether that is
desirable or its effect on delegation/inheritance (if you use those
facilities).  If you
are going to use them simply as modules then it would likely be ok:

attach(task1)
var
detach(task1)
What do namespaces buy us?  Namespaces are environments and so
are proto objects.  proto objects give you the facitilites of object oriented
programming including delegation (like inheritance) although based on
your description you only intend to  use them as modules (but if you
think about your modules as objects the OO approach might further simplify
and organize your project).