[Gambas-user] Issue 172 in gambas: Using static symbols on objects not consistent
gambas at ...2524...
gambas at ...2524...
Wed Dec 28 01:22:37 CET 2011
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 172 by emil.len... at ...626...: Using static symbols on objects not
consistent
http://code.google.com/p/gambas/issues/detail?id=172
1) Describe the problem.
Let's say you have an object "obj" of class Class1.
Class1 has these symbols:
Static Public Const c As Integer
Static Public v As Integer
Static Property p As Integer
Static Public Sub f()
If you now try to execute obj.f() or evaluating obj.c, that works. But
evaluating obj.v or obj.p results in a runtime error "'Class1.v' is static".
That is quite inconsistent. The same rules should be applied to all kind of
symbols when they are static, but used on instances, I think...
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision: r4343
More information about the User
mailing list