Strings

The Hello World! program, back in Section3 could have been written a little differently, as the following transcript shows.
: hi2 s" Hello World!" cr type ;  ok<#,ram>
hi2 
Hello World! ok<#,ram>
The word s" compiles the string into Flash memory and, at run time, leaves the address of the string and the number of characters in the string on the stack. Using this information, the word type will send the characters to the standard output.




Subsections

Peter Jacobs 2013-06-12