[Gambas-user] Issue 172 in gambas: Using static symbols on objects not consistent
gambas at ...2524...
gambas at ...2524...
Wed Dec 28 15:33:01 CET 2011
Comment #4 on issue 172 by emil.len... at ...626...: Using static symbols on
objects not consistent
http://code.google.com/p/gambas/issues/detail?id=172
One little problem I can see is the following:
Let's say you have obj1 and obj2 of class Class1. Class1 has a static
variable 'a'.
The following code:
obj1.a = 1426
obj2.a = 231
Print obj1.a 'Prints 231
If you don't know that 'a' is actually static, but you know that obj1 and
obj2 are different objects, you might think it's strange when both obj1.a
and obj2.a seem to point to the same variable.
However, this problem does not exist for read only properties.
More information about the User
mailing list