String append: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 346: | Line 346: | ||
=={{header|Forth}}== |
=={{header|Forth}}== |
||
<lang Forth>Strings in Forth are simply named memory locations |
<lang Forth>\ Strings in Forth are simply named memory locations |
||
create astring 256 allot \ create a "string" |
create astring 256 allot \ create a "string" |
||
Line 352: | Line 352: | ||
s" Hello " astring PLACE \ initialize the string |
s" Hello " astring PLACE \ initialize the string |
||
s" World!" astring +PLACE \ append with "+place" |
s" World!" astring +PLACE \ append with "+place"</lang> |
||
</lang> |
|||
Test at the console |
Test at the console |