[Haskell] Re: Boxing (Day) Question

Taral taralx at gmail.com
Wed Dec 28 14:56:55 EST 2005


On 12/26/05, Ashley Yakeley <ashley at semantic.org> wrote:
> I thought functions receive dictionaries, rather than dictionaries being
> stored inside values? For instance:
>
>   class C (x :: #4) where ...
>
>   foo :: (C x) => x -> Bool
>   foo x = ...
>
> might be generate something like this:
>
>   HsBool foo (CDict dict,int32 x) { ... }

Just a strange thought, but what about...

foo :: x# -> ...
=>
... foo (void *x, ...) { ... }

Just because it's unboxed doesn't mean it isn't in memory...

--
Taral <taralx at gmail.com>
"Computer science is no more about computers than astronomy is about
telescopes."
    -- Edsger Dijkstra


More information about the Haskell mailing list