Difference between revisions of "Gambas/syntax/variables/classes"
Jump to navigation
Jump to search
(The Gambas Object Model) |
(class name as a string) |
||
Line 1: | Line 1: | ||
==Notes== | ==Notes== | ||
Object variables seem to be essentially pointers, as in most object-oriented languages. In other words, if you set object A equal to object B (A = B), then change object B, the changes will be reflected in A as well. | Object variables seem to be essentially pointers, as in most object-oriented languages. In other words, if you set object A equal to object B (A = B), then change object B, the changes will be reflected in A as well. | ||
+ | |||
+ | To return the class of an object "X" as a string: <gambas>Object.Class(X).Name</gambas> | ||
==Pages== | ==Pages== | ||
* [[/inheritance]] | * [[/inheritance]] |
Latest revision as of 22:57, 2 June 2015
Notes
Object variables seem to be essentially pointers, as in most object-oriented languages. In other words, if you set object A equal to object B (A = B), then change object B, the changes will be reflected in A as well.
To return the class of an object "X" as a string: <gambas>Object.Class(X).Name</gambas>
Pages
Links
Official
- newer documentation: