previous next |
3.3.4. Quotes Within Strings |
Strings are delimited using single quotes or double quotes (but not mixed). One may directly use quotes inside a string if they are not of the same type as the delimiters. To get quotes inside a string which *are* of the same type as the delimiters, the quotes must be doubled. |
Example |
'This string ''contains'' quotes of "various" styles.'; -- CoCoA Input This string 'contains' quotes of "various" styles. ------------------------------- "This string also 'contains' quotes of ""various"" styles."; -- CoCoA Input This string also 'contains' quotes of "various" styles. ------------------------------- Imagine the difficulties in writing this section of the online manual within a CoCoA package. ;> |