[Haskell-cafe] WildCard question

Keith Wansbrough Keith.Wansbrough at cl.cam.ac.uk
Wed Apr 14 11:07:40 EDT 2004


Jon Fairbairn <Jon.Fairbairn at cl.cam.ac.uk> writes:
> On 2004-04-13 at 18:52+0200 Ketil Malde wrote:
> > Paul Cosby <cozbie at yahoo.co.uk> writes:
> > 
> > > Every time I try to use [underscore] in an definition it says
> > > something like the symbol /017 is not recognised
> > 
> > Could that be \017, i.e. octal 17 (defined in ASCII as SI, whatever
> > that may be)?
> 
> SI is Shift In, if I remember correctly, not that the
> operation of devices like Flexowriters is of any
> relevance. However, I'd guess that it's hexadecimal 17,
> because ord '_' `rem` 16 == 15 == 0x17. So for some reason
> it's talking about the botom four bits of '_'!

ITYM octal - underscore is character 95 = 0x5F = 0137, so the bottom
four bits are 0xF = 017.

Perhaps you're typing Ctrl-_ instead of Shift-_?  (long shot)

--KW 8-)



More information about the Haskell-Cafe mailing list