Kappa logo Kappa> Software> Structs
Structs library
I wrote this library using some long-standing ideas for Basalt, because structures have been high on the list of wants for BASIC.

Prototypes of structures are defined and new structures are created from them, or they can be applied to existing blocks of memory, such as window info.

Prototype variables catered for are:

integer%
a 4-byte integer
string$
a 5-byte SIB for a string
string$[n]
a string in a buffer of length n+1, read as string$
string!
an indirected external string, read as string$
byte?
a 1-byte integer
float|
a 5-byte floating point number
substr{proto}
a substructure in the main structure
substr{}
an indirected external substructure
array?(n)
an array with n+1 elements; types: ? = % $ ? | !
array#(n)
a bit array with n+1 elements
array(n){proto}
an array of n+1 substructures
array?()
an indirected external array; types: ? = % $ |

Substructures can be nested and are referenced by name only.

A StrongHelp manual is included in the download.

Download:
Longs zipfile