[Gambas-bugtracker] Bug #2585: Allow Structure and extern definitions to be included at compile time

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Wed Oct 19 19:12:06 CEST 2022


Comment #1 by Brian G:

Again I ask this!

Is it possible to allow Some form of #include for the project sources like is available in the scripter.

It is so error prone when one has to copy the structure definitions to each file that uses it, rather than just have an include statement.

The main issue is of course when a structure changes, one has to remember every class or module that references it to change manually.

Implementing this such that in the project Data the structures could be defined like MyStruct.gh

and in my class or module I could do

#include "MyStruct.gh"

More information about the Bugtracker mailing list