[fpc-pascal] Re: What is the portable approach?
Alan Mead
cubrewer at yahoo.com
Wed Oct 5 00:30:31 CEST 2005
--- L505 <fpc505 at z505.com> wrote:
>
>
> > AM> I have data that would fit an associative array if they
> > AM> really existed in Pascal
> >
> > I remember spotting this in the "Contributed Units" section,
> > although I don't know if it will suit your needs:
> > http://www.behrenhoff.de/pascal/hash.zip
[snip]
> Interesting - let us know if it works out.
I really appreciated Jeff's note. But I think this unit only stores
text strings and values--already better supported, syntactically, by
the psuedo-associative "trick" behavior of string lists:
MyHash := TStrubglist.Create;
MyHash['Alan'] := 'Mead';
I also have to admit being worried by some of the code... like the
lack of error checking (as noted by the author).
-Alan
More information about the fpc-pascal
mailing list