up
previous
next
4.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
Print "This string ""contains"" quotes of 'various' styles.";
This string "contains" quotes of 'various' styles.
-------------------------------
Print 'This string also "contains" quotes of ''various'' styles.'; --deprecated
This string also "contains" quotes of 'various' styles.
-------------------------------
Imagine the difficulties in writing this section of the online manual
within a CoCoA package. ;>