Forth Easy · Lesson 7

Structures: struct, field, end-struct, %allot

Lay out records with Gforth struct/field, allocate them with %allot, and read fields as address offsets.

Lessons · Forth Easy · Lesson 7 of 10

Structures: struct, field, end-struct, %allot

Lay out records with Gforth struct/field, allocate them with %allot, and read fields as address offsets.

Illustration for Forth
Lay out records with Gforth struct/field, allocate them with %allot, and read fields as address offsets.