( User-defined words )

( Using strings for output )
" Hello, World! (Method 1)" type cr

( If you need to display a string from within a word )
( This method makes the string CONSTANT )
" Hello, World! (Method 2)" string: hello_msg
: hello1 hello_msg type cr ;
hello1

( Displaying a variable, counted string )
create hello_msg2 32 chars allot
" Hello, World! (Method 3)" hello_msg2 place
hello_msg2 count type cr

( As above, but from within a word )
" Hello, World! (Method 4)" hello_msg2 place
: hello2 hello_msg2 count type cr ;
hello2


