Replies: 2 comments 4 replies
-
This situation is declared as an ambiguous condition, so it's up to the system what to do in this case. See 4.1.2 Ambiguous conditions
I think, a throw code should be reserved for such a situation. A better way is to provide an API that allows a program to avoid such a situation by checking available space and asking for more space by the needs. The standard word In some systems additional dictionary partitions can be provide to a program by demand. |
Beta Was this translation helpful? Give feedback.
-
|
On Thu, Feb 09, 2023 at 04:22:00AM -0800, Anthony Howe wrote:
What happens when `ALLOT`, `C,`, `,`, `ALIGN`, et al. cannot reserve requested data space? I cannot find any description for this error condition in the old Forth 1994 standard or Draft 19-1 in section 3.3.3 Data space (and its rationale) or else where.
AFAIR in oldschool Forth, the top of PAD collides with the bottom of BUFFERS, with hilarious consequences.
…--
Gordonjcp
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What happens when
ALLOT,C,,,,ALIGN, et al. cannot reserve requested data space? I cannot find any description for this error condition in the old Forth 1994 standard or Draft 19-1 in section 3.3.3 Data space (and its rationale) or else where.THROWan error, though there does not appear to be any code for out of memory or out of data space; the closest might be-59 ALLOCATE.Beta Was this translation helpful? Give feedback.
All reactions