DYNOP_DEF Enhancement

MX_DYNSTRUCT enhancement (compiler edit 876) : The DYNOP_DEF operation now supports reading the structure definition from BASIC source files in addition to strings. To specify a source file instead of a source string, prefix the dsdef$ parameter with an "@", e.g.

    dsdef$ = "@exlib:fhooktst5.bp[908,50]"

    xcall MIAMEX, MX_DYNSTRUCT, DYNOP_DEF, status, dsdef$, fields, dsname$, errmsg$

 

++include files are supported, so this gives you the ability to use any DEFSTRUCT within an existing program for a dynamic structure definition. It also makes it much easier to dynamically compile DEFSTRUCTs that rely on DEFINEs, DEFTYPEs, and nested DEFSTRUCTs since in the string version, you have to include all of the dependent definitions in your string.

Note that as with compiler edit 875, this patch only affects dynamic structure compilation, and thus won't affect traditional program compilation—i.e. doesn't require an update to the standalone compiler.