What is good about Prothon?
Greg Ewing
greg at cosc.canterbury.ac.nz
Thu Apr 29 22:52:55 EDT 2004
has wrote:
> # Create object 'a'
> a = Object()
> a.x = 1
>
> # Create objects 'b' and 'c'
> b = a()
> c = a()
You've mistranslated your example. The Prothon equivalent
would be more like
b = a.copy()
c = a.copy()
and then you have three independent objects, just as you
want.
The exactly equivalent thing can also be done in Python,
for what its' worth.
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list