Please enable JavaScript to view this site.

A-Shell 6.5 Development Notes

BINDSTRUCT enhancement: the second argument (the defstruct instance) may now be a base array reference. For example:    

.BINDSTRUCT ds, st()

In this case, the structure is bound to the DYNSTRUCT instance (ds), but no data is copied. However, once bound, you can then manually copy elements from the array, using the same binding, e.g.

.bindstruct ds, st()      ! bind w/o copy

for i = .extent(st())

    ds = st(i)            ! copy, preserving prior binding

    ? ds,@fldname$        ! dynstruct deferred indirect ref

next i