Language enhancement: New statement .BINDSTRUCT binds a dynamic structure to the defstruct associated with a defstruct instance and then copies the defstruct instance data to the dynstruct. Syntax:
.BINDSTRUCT ds, st
where:
Value |
Meaning |
---|---|
ds |
A DYNSTRUCT |
st |
An instance of a DEFSTRUCT |
The .BINDSTRUCT statement binds the specified DYNSTRUCT variable (ds) to the structure definition correponding to the specified DEFSTRUCT instance variable (st). And then it copies the data from the DEFSTRUCT instance to the DYNSTRUCT.
This would be equivalent to the following...
xcall MIAMEX, MX_DYNSTRUCT, DYNOP_DEF, status, src$, fields, stsize, dsname$
xcall MIAMEX, MX_DYNSTRUCT, DYNOP_BIND, status, dsname$, ds
ds = st
... except that the structure name (dsname$) is determined implicitly from the structure variable instance (st), and the src$ parameter is "" to extract the structure definition from the current RUN file directly.