Something I have suggested on the French forum, a mean to specify a
ToolBox directory just like
FreeMat 4.0* to put some source code to scan for user defined element such as Constants, Structures, Imports, Macros and Procedures.
Yes it's possible the generate Resident for Constants, Structures and Macro as well as library for procedures but we have to recompile them for each platform each time we upgrade them. We spend more time on creating and solving problem related to create these resident and library file than we spend on developing project.
Setting a
ToolBox directory will be less subject to modification like Resident and/or library does when PureBasic is Updated from 4.5x to 4.6x version. And this is not very difficult to implement because the IDE generate a "PB_Output_source_file.pb" or something. So scanning the sources files present in the
ToolBox directory for missing element and add them to the output source before to popup the error message like
Structure not found : ...
... is not a function, array, macro or linked list.
will be very easy to do and solve the problem to compile resident files and/or create library files and most important they will probably don't need any modification for many many PureBasic version upgrade. For many of my program I use command created many years ago (In 2003 - 2004 - 2005).
It's just a suggestion but I really think it's a very good idea and it should be added for the 4.70. Or if we are very aggressive, for 4.61 final version.
Best regards.
Guimauve
*If you don't know FreeMat, it's an equivalent environment to MatLAB and almost compatible with it. Sometime when I create mathematics function I start by creating a prototype in Freemat then I port it to PureBasic.