struct |
"STRUCT - simple struct implementation"struct"struct" implements neon/mops/mpe-like structures. "structs" implements fsl/mforth-like structures. the two wordsets are designed to let the sub-words to be used interchangably both inside STRUCT and STRUCTURE definitions. They will also work inside pfe's class-definitions btw. The provided words try to be compatible with the simple implementation guidelines as provided in the survey at the comp.lang.forth.repository (http://forth.sourceforge.net/word/structure) and the documentation on MPE' forth's implementation (/vol/c/Programme/PfwVfx/Doc/VfxMan.Htm/struct.html) and the structs-source of the Forth Scientific Library (lib/fsl/structs.fth) plus some compatibility sugar for the gforth' struct (gforth/struct.fs) field-layout PFA[0] has the offset (elsewhere for the method-table) PFA[1] has the sizeof (may serve as minimalistic type-id) struct-layout PFA[0] unused (elswehere method-table or type-id) PFA[1] has the sizeof (that is instantiated) therefore SIZEOF is designed to give a nice result in both places.
struct ordinary primitive
struct ordinary primitive
struct defining primitive
struct ordinary primitive
struct ordinary primitive
struct ordinary primitive struct ordinary primitive
struct ordinary primitive
struct ordinary primitive
struct ordinary primitive
struct defining primitive
struct ordinary primitive
struct compiling primitive
EXTENSIONS CHAR% no special info, see general notes struct ordinary primitive EXTENSIONS CELL% no special info, see general notes struct ordinary primitive EXTENSIONS WCHAR% no special info, see general notes struct ordinary primitive EXTENSIONS DOUBLE% no special info, see general notes struct ordinary primitive EXTENSIONS FLOAT% no special info, see general notes struct ordinary primitive EXTENSIONS SFLOAT% no special info, see general notes struct ordinary primitive EXTENSIONS DFLOAT% no special info, see general notes struct ordinary primitive |