The following page contains reserved words. These are not part of the ANS Forth Standard. They are just proposed by various people and published here at FORTH.SF.NET for public review.

:NON:
:STD:

TOC


R.14 Memory-Allocation reserved extension words


R.14.6.1.0707 BUFFER:
MEMORY RES EXT
        ( size "name" -- )

Skip leading spaces, parse name and create the name. Get new data memory of the given size and append execution semantics to the name to return the address of the start of that new data buffer.

        Execution: ( -- addr )

Unlike other words like CREATE and VARIABLE the allocated memory does not needfully be part of the forth data space handled by calls to ALLOT and similar words that are part of the contiguous regions guarantee. Alternativly it can use memory allocated through ALLOCATE or any other means. Successive calls to BUFFER: may yield non-adjescant memory areas and no means are provided to enlarge or shrink this memory area after it has been allocated. Accessing addresses outside the range from the address up to address plus size is an error and can yield to an exception.

See: 3.3.3 data space 3.3.3.2 contiguous regions 6.1.0710 ALLOT 14.6.1.0707 ALLOCATE 6.1.1000 CREATE 6.1.2410 VARIABLE


Table of Contents
Next Section