Previous | Table of Contents | Next |
The contents of character and string literals can take any legitimate form defined by OMG IDL. Unlike OMG IDL, however, strings
may be delimited by either single quotes, double quotes, or back quotes (provided that the opening delimiter matches the closing).
Strings may also be left undelimited, provided that they start with an alphabetic character, and contain no whitespace or
special characters. Characters are delimited by matching single, double, or back quotes. Escape sequences are supported in
both strings and characters. Wide characters/strings are prefixed with “L.? String concatenation is supported (primarily to
enable long strings to be entered using a number of lines).
Since HUTN is based on the strong type system of the MOF, it is always known whether a literal value is a character or a string.
Hence, HUTN permits the use of a pair of single, double or back quotes to delimit both character and string literals. This
can be convenient when the string must contain single/double quote characters as it is only necessary to escape the kind of
quote used as a delimiter.