Request: 'Include'

Previous topic - Next topic

bigsofty

A few problems with the project file...

I had to delete a file and move a GLBAS lib about.

Now my project file would not let me Delete the filename of the missing file from the "files" tab of the project window... dunno why, seems that the file has to exist before your allowed to delete it from the project.

This was my first problem...

I eventually added the lib to the project file BUT it was now declaring types at the end of the compilation process and there was no way of moving it up the list of files in the project. This file needed to be declared first as other libs after it were expecting types that it defined to be ready (it had to compile 1st)... hope thats not too confusing.

How to solve...

Get rid of the project file (yes I know it defines more than just included files) and use an 'include' command. This would allow the user to specify the files required for a project and the order that they were compiled as well...

So for example the first few lines of the parent program would be...

Code (glbasic) Select
INCLUDE "types_lib.gbas"
INCLUDE "vector_lib.gbas"
INCLUDE "particles_lib.gbas"
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Kitty Hello

Left-click the file in files-tab, then right mouse button: Remove.
Then re-include it. No, INCLUDE will not be implemented. I like the GUI method more, since it allows you to double click a file.

bigsofty

Not a biggie, so that's OK... ;)

Oh, a little doc bug, DRAWRECT is missing from the '2D Commands' index Gernot. Its reference page is there but not its link in the list of 2D commands.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)