RosettaCodeData/Task/String-append/Forth/string-append-1.fth

8 lines
208 B
Forth
Raw Permalink Normal View History

2018-08-17 15:15:24 +01:00
\ Strings in Forth are simply named memory locations
2015-11-18 06:14:39 +00:00
create astring 256 allot \ create a "string"
s" Hello " astring PLACE \ initialize the string
s" World!" astring +PLACE \ append with "+place"