Comment #6 on issue 172 by benoit.m...@gmail.com: Using static symbols on objects not consistent http://code.google.com/p/gambas/issues/detail?id=172
There is no "dynamic" constant. The point is that you are using a symbol on an object reference, and the symbol kind (constant, property... static or not) is known at runtime only. By allowing using static symbols on reference too, not just on the class name, allows to change the class implementation without breaking the existing code. I have the case with the IDE, with some singleton classes. The unique object of these classes have a read-only "Name" symbol, that is actually a constant, not a dynamic property or variable. It is faster, as constants access are optimized at runtime. And later I can choose to make a constant, or a true property, or a variable, without breaking the existing code. Of course, the programmer must know what the class does. Otherwise he may get strange things like you point in the message #4. ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user