[Gambas-user] how can i emulate GLOBAL VARIABLES in gambas project/programs?

PICCORO McKAY Lenz mckaygerhard at gmail.com
Wed Jun 20 17:37:05 CEST 2018


2018-06-20 11:17 GMT-04:00 Tobias Boege <taboege at gmail.com>:

> To store variables whose names you don't know at compile time, you normally
> use a Collection.

It's precisely what I've been doing, BUT TOTALLY IMPRACTICALL AND UNFLEXIBLE


> The most syntactic sugar you're going to get is via the
> special methods _property and _unknown or _get and _put [1]. Forward
> accesses
> to your Global module through these interfaces to an internal Collection.
>
...same as previous but with details..

so there's no support or a way to emulated!? without a collection case
store?


>
> Regards,
> Tobi
>
> [1] http://gambaswiki.org/wiki/cat/special
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180620/7097c663/attachment.html>


More information about the User mailing list