[mercury-users] 'Char' type problem

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Mar 17 22:30:58 AEDT 1998


On 17-Mar-1998, Peter Phelan <peter.phelan at anite-systems.lu> wrote:
> I have a very simple program, which produces the following
> error under mmc --
> error: undefined type char/1.
> 
> I understood that char was a built in recognised type.

For historical reasons that are probably no longer important,
`char' is not a built in type -- instead, the builtin type
is called `character', and the library module `char' contains
`:- type char == character'.

So, you just need to add `:- import_module char'.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.



More information about the users mailing list