[Haskell-cafe] Re: ByteString.pack behavior
Achim Schneider
barsoap at web.de
Mon May 19 09:19:22 EDT 2008
Dusan Kolar <kolar at fit.vutbr.cz> wrote:
> Thanks. I've realized that as soon as I was in my bed. ;-)
>
> Nevertheless, a question comes to me - shouldn't compiler report a
> warning? I know it cannot in the current state, but it should. :-)
> Quite dummy C compilers tell me I'm "loosing significant digits of
> number literals" if I'm doing that. Maybe, already seen in some other
> thread some time ago, the compiler should be less general/should know
> more about data types...
>
While doing that is easy in this case, it becomes quite delicate in the
general case. More precisely, it grows into the halting problem.
--
(c) this sig last receiving data processing entity. Inspect headers for
past copyright information. All rights reserved. Unauthorised copying,
hiring, renting, public performance and/or broadcasting of this
signature prohibited.
More information about the Haskell-Cafe
mailing list