What is good about Prothon?
Delaney, Timothy C (Timothy)
tdelaney at avaya.com
Fri Apr 30 02:21:45 CEST 2004
> Whereas Prothon does this:
> # Create object 'a'
> a = Object()
> a.x = 1
> # Create objects 'b' and 'c'
> b = a()
> c = a()
> print a.x, b.x, c.x # --> 1 1 1
> b.x = 4
> print a.x, b.x, c.x # --> 1 4 1
> a.x = 9
> print a.x, b.x, c.x # --> 9 4 9
Urgh. I haven't been following closely, but this is exactly counter to
what I would expect of a prototype-based language.
The whole point of ptototypes IMO is to provide a *snapshot* as the base
configuration of an object. So every attibute and method should be
copied to the new object, and there is then no further connection
between the prototype and the new object.
More information about the Python-list