[prev in list] [next in list] [prev in thread] [next in thread]
List: haskell
Subject: Empty arrays
From: Jon.Fairbairn () cl ! cam ! ac ! uk
Date: 1998-06-30 10:07:55
Message-ID: E0yqwDt-0002bR-00 () heaton ! cl ! cam ! ac ! uk
[Download RAW message or body]
Another little quibble:
If I run the following
> module Main where
> import Array
> main = (putStr . show . bounds . array (0,-1)) ([]::[(Integer,Char)])
with ghc I get (0, -1), but with hugs I get
Program error: index: Index out of range
As far as I can interpret the library report, ghc is correct in this
respect. Moreover, I think that is what we should get, since an empty
array is useful. So perhaps I should simply be reporting a bug in
hugs, but I thought I'd check here to be sure that everyone agrees
that this is correct.
Jon
--
Jon Fairbairn Jon.Fairbairn@cl.cam.ac.uk
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic