Welcome to %s forums

BrainModular Users Forum

Login Register

hash/dictionary data types in Pascal

I need help on a Patch
Post Reply
ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 19 Mar 2014, 15:31

Hi senso,

Is it possible to add support for the Dictionary Pascal data type? It's really difficult to have to go back to looping through an entire array to find the element which matches what you are looking for.

For instance I want to be able to get the correct param out of a data structure by passing in its numeric representation, so that I can quickly build dynamic dispatches from the callback procedure.

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 19 Mar 2014, 21:48

I figured out a way to do the kind of dynamic dispatch that I want without a hash type structure. Pretty obvious when I think about it:

Code: Select all

curIndex := N - parameterArray[0];
// do something with parameterArray[curIndex]
But still... hashes are cool.

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests