next up previous contents index
Next: Case-sensitivity Up: Conventions adopted by XLOGO Previous: Procedures   Contents   Index

Specific character \

The specific character \ (backlash) especially allows the creation of words containing blank or line feed symbols. If \n is used, the phrase skips to the following line, and \ followed by a blank means a blank in a word. Example:
pr "xlogo\ xlogo
xlogo xlogo
pr "xlogo\nxlogo
xlogo
xlogo

You can therefore only write the \ symbol by typing \\.

Same behaviour, characters ( ) [ ] # are specific delimiters of Logo. If you want to use them in a word, you just have to add the character \before.

All \ only symbols are ignored. This remark is especially important for the use of files.
To set your current directory path to c:\My Documents:

setdir "c:\\My\ Documents.

Please note the use of \ to notify the space between My and Documents. If, you forget the double backclash, the path that will be defined will then be c:My Documents and the interpretor will send you an error message.



Loïc 2008-06-08