[Haskell-cafe] Specify array or list size?

Jacob Nelson jake at jfet.net
Sat May 7 15:31:22 EDT 2005



On Sat, 7 May 2005, Abraham Egnor wrote:

> So does ghc:
> ...
> That doesn't mean the size is part of the *type*.

Sure. I'm just pointing out that
    int a[50];
is not *quite* the same as
    int *a = (int *)malloc(50 * sizeof(int));

jacob


More information about the Haskell-Cafe mailing list