Re: [buildcheapeeg] Question for Doug

From: Doug Sutherland (wearable_at_earthlink.net)
Date: 2002-02-28 04:43:06


John Morrison wrote:

> When the system is complete and someone produces a new
> class/object you want to try is it possible for the system
> to add "instantiate" it with out recompiling the program?

Compilation and instantiation are different things. In Java,
you compile your code into bytecode, those .class files.
There will always be one main method, this instantiates
objects which in turn instantiate other objects. The class
file is like a "blueprint" of an object, it doesn't live
until it's instantiated, and many of it can be instantiated.

The code must be compiled before it can be used (obviously).
The same holds true for C++ but rather than bytecode we are
creating binary object modules. You really need to get away
from speaking of "the program" when dealing with OO, there
is no one program, it's a bunch of classes. For OpenEEG we
will have a main program that will launch everything else,
but it should be very small and simple.

-- Doug



This archive was generated by hypermail 2.1.4 : 2002-07-27 12:28:39 BST