prototypes & mirrors

Steve Dekorte steve at inquisit.com
Thu Feb 26 23:11:28 UTC 1998


> If we eliminate classes, then we will need to create new
> objects (Self calls them mirrors) so we can still write
> the programming environment within the same language.
> So it would seem that nothing is gained by getting rid of
> classes, but this is not true as these mirrors can be
> created "on the fly" only when needed instead of having
> to hang around all the time.

That's one way to do it. But Lua, for example, uses a single
global function to look through the slots in a table/frame.
And since everything in the system is in these interconnected
tables, you have complete reflectivity without mirrors.
NewtonScript is similar.

Steve Dekorte





More information about the Squeak-dev mailing list