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

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


Le mer. 25 mars 2026 à 18:34, Benoît Minisini <
benoit.minisini@xxxxxxxxxxxxxxxx> a écrit :

> 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.
>
>
> For sure it's a thing that miss a lot to make bindings easily.

with something like that you can declare structures once in a kind of
header public module.

-- 
Fabien Bodard

Follow-Ups:
Re: WARNING! New experimental feature in the development version!Brian G <brian@xxxxxxxxxxxxxxxx>
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>
Re: WARNING! New experimental feature in the development version!Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>