[fpc-pascal] NULL pointer to array of integer
Marc Santhoff
M.Santhoff at t-online.de
Thu Sep 14 11:47:29 CEST 2006
Am Donnerstag, den 14.09.2006, 11:14 +0200 schrieb Jonas Maebe:
> On 14 Sep 2006, at 10:50, Marc Santhoff wrote:
>
> >> function H5Screate_simple(rank:longint; dims: phsize_t;
> >> maxdims:phsize_t):hid_t;cdecl;external;
> >
> > Yes, this does actually work. :)
> >
> >> When passing arrays, pass the address of the first element of the
> >> array.
> >
> > Still thinking about that, I don't want to change calling syntax very
> > much ...
>
> Well, you can create different overloaded versions for all possible
> uses of course:
>
> function H5Screate_simple(rank:longint; dims: array of hsize_t;
> maxdims: array of hsize_t):hid_t;cdecl;external;
> function H5Screate_simple(rank:longint; dims: array of hsize_t;
> maxdims: phsize_t):hid_t;cdecl;external;
> function H5Screate_simple(rank:longint; dims: phsize_t; maxdims:
> array of hsize_t):hid_t;cdecl;external;
> function H5Screate_simple(rank:longint; dims: phsize_t; maxdims:
> array of hsize_t):hid_t;cdecl;external;
>
> (possibly leaving some out which don't make sense)
Yes, great! I've tried in the meantime and found that I can have both or
all of them, that's nice. :)
Thanks again,
Marc
More information about the fpc-pascal
mailing list