defining unix

Ross Paterson ross at soi.city.ac.uk
Fri Oct 3 11:15:05 EDT 2003


On Thu, Oct 02, 2003 at 06:35:10PM -0700, Iavor Diatchki wrote:
> hugs crashes if one tries to define unix:
> 
> > unix  = undefined
> 
> INTERNAL ERROR: compileGlobalFunction

I presume you have -F set to run the C preprocessor on source files
(and unix is predefined in there to 1).  So the real bug here is that

  1 = undefined

gives the above error.

> another interesting thing occurs if the following is added:
> 
> > f = test' unix
> > test' = undefined
> 
> then one gets an undefined variable:
> 
> ERROR "test.lhs":11 - Undefined variable "unix"
> 
> however this does not seem to happen if the ' is not there

The pair of single quotes protects this unix from the preprocessor.


More information about the Hugs-Bugs mailing list