Go to the first, previous, next, last section, table of contents.


Blocks

This chapter describes how to use block files within Gforth.

Block files are traditionally means of data and source storage in Forth. They have been very important in resource-starved computers without OS in the past. Gforth doesn't encourage to use blocks as source, and provides blocks only for backward compatibility. The ANS standard requires blocks to be available when files are.

open-blocks       addr u --         gforth       ``open-blocks''

use the file, whose name is given by addr u, as blocks file

use       "file" --         gforth       ``use''

use file as blocks file

get-block-fid       -- fid         gforth       ``get-block-fid''

block-position       u --         block       ``block-position''

positions the block file to the start of block u

update       --         block       ``update''

save-buffer       buffer --         gforth       ``save-buffer''

empty-buffer       buffer --         gforth       ``empty-buffer''

flush       --         block       ``flush''

get-buffer       n -- a-addr         gforth       ``get-buffer''

block              unknown       ``block''

buffer       u -- a-addr         block       ``buffer''

updated?       n -- f         gforth       ``updated?''

list       u --         block       ``list''

load       i*x n -- j*x         block       ``load''

thru       i*x n1 n2 -- j*x         block       ``thru''

+load       i*x n -- j*x         block       ``+load''

+thru       i*x n1 n2 -- j*x         block       ``+thru''

-->       --         block       ``-->''

block-included       addr u --         gforth       ``block-included''


Go to the first, previous, next, last section, table of contents.