[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WARNING! New experimental feature in the development version!


Le 25/03/2026 à 18:33, Benoît Minisini a écrit :
Le 25/03/2026 à 18:02, Brian G a écrit :
Looking at the new code you added,

Would it now be possible to make things such as public structures into a now global asset, where if defined once, can be accessed anywhere within the app?

looks like the gbc_info interface may allow that type of extension/ globalization. such that one would not have to copy paste structures into each file they are used in and not have to incur the overhead of using a class interface to make they global.


I'm not 100% sure, maybe.

It needs the structures to be exported to the information file, the inheritance must be ignored, if two declarations of the same structure are found, an error must be raised if they are not strictly the same, and finally the structure must be available to the classes where it is not declared. A lot of work for sure...

Regards,


So not immediately. At the moment, the two pass compilation is optional, it's there just for additional compilation checks, not for a new behaviour in the language.

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: WARNING! New experimental feature in the development version!Fabien Bodard <gambas.fr@xxxxxxxxx>
References:
WARNING! New experimental feature in the development version!Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: WARNING! New experimental feature in the development version!Brian G <brian@xxxxxxxxxxxxxxxx>
Re: WARNING! New experimental feature in the development version!Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>