<< Prev | - Up - | Next >> |
Characters in Oz are modelled by integers between 0 and 128 as specified by the ASCII table. In Oz we can write
&a
to obtain the ASCII number of the letter a
. Strings are lists of characters. For instance
&a
A virtual string is either a string, an atom, or a comosition
V1#...#Vn
of virtual strings. When you want to pass strings from Oz to the outside you can freely use virtual strings instead of strings. For instance, we can define URL compositionally:
declare AuthorURL = 'http://www.ps.uni-sb.de/~niehren'
declare CourseDir = 'Web/Vorlesungen/Oz-NL-SS01/vorlesung'
declare CourseURL = AthorURL#'/'#CourseDir
<< Prev | - Up - | Next >> |