Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gforth, FORGET and LIST words as in the original Forth

Tags:

forth

gforth

Is there an equivalent to forget word of Forth in Gforth?

I've seen about marker, but it doesn't have the same behaviour. Also the list command doesn't seem to give a listing of the program.

I'd like to view a list of the in-memory program, just like old list in BASIC - I think that was the behaviour in the original Forth also.

like image 928
Krackout Avatar asked Jun 24 '20 18:06

Krackout


Video Answer


1 Answers

FORGET is obsolescent and is included as a concession to existing implementations according to the Forth standard and the word you need to "list" a Forth word is SEE <word>.

This word is obsolescent and is included as a concession to existing implementations.

forth-standard.org/standard/tools/FORGET

like image 85
Glassman2004 Avatar answered Sep 28 '22 08:09

Glassman2004