[Haskell-cafe] global variables

David House dmhouse at gmail.com
Thu May 24 14:51:14 EDT 2007

On 24/05/07, Adrian Hey <ahey at iee.org> wrote:
> Or even at compile time (which is why I think it's reasonable to
> regard operations like newIORef etc.. as not really being "IO"
> operations at all).

You can allocate heap space at compile time? (Well, I guess you could,
but that wouldn't still be usable at run time...) I imagine newIORef
as mallocing() some room, then returning a pointer to that memory.
That doesn't seem like something that could be done at compile time.

-David House, dmhouse at gmail.com

More information about the Haskell-Cafe mailing list