Rewritten July 2022
The dynamic structure must be defined (or "compiled") in a particular way—retaining the symbolic field names and positions—before it can be usefully associated with a declared dynstruct variable. This can be accomplished via either of the following methods:
• By re-processing the DEFSTRUCT source code at runtime, either from a program file or from a string built by the application, using MX_DYNSTRUCT with the DYNOP_DEF opcode.
• By directing the compiler to embed the expanded DEFSTRUCT information in the RUN file, using one of the methods described in Structure Definition Embedding.
History
2022 February, A-Shell 6.5.1711, compiler edit 965: Support Structure Definition Embedding.