Subject: Re: Q. on Ass5 of 360

> 
> Hi,
> How can we represent SPACE  and CTLS in prolog ? (for Q.5)
> (are they " " and "\^" ??)
> 
> Thanks.

Since Prolog strings are lists of numbers (the ASCII encoding),
the control characters are simply number 0-31, space is 32, etc.
Example: [0,32] is the string "\0 " (ascii 0 [ctrl-blank] followed
by ascii 32 [blank]).

/CC

___________________________________________________________________________
Christian Collberg      | Email: c_collberg@cs.auckland.ac.nz
Computer Science Dept   | Fax:   +64-9-373-7453
University of Auckland  | Phone: +64-9-373-7599 x 6137
Private Bag 92019,      | WWW:   http://www.cs.auckland.ac.nz/~collberg/
Auckland, NZ            |
___________________________________________________________________________
"Education is an admirable thing, but it is well to remember from time
to time that nothing that is worth knowing can be taught." - Oscar Wilde
___________________________________________________________________________