[PD] Array with text named indices?

2010-03-11 Thread saint
Hi all,

Does anybody know of a way of storing a bunch of data in an array-style 
container that uses a text-based name instead of an index number to lookup 
values?

Hopefully with a save to disk feature? (like textfile)

Basically I'm looking for an object that can store something like...

blahBlahBlahItem 0.5678;
strawberryJam 71;
underwearForSwimming 0;
endangeredLunchbox 1;


It seems that I could use textfile for this but my programming is cumbersome 
for anything that's not just adding to the list. (i.e. changing the value of 
'endangeredLunchbox' to 2.)
And I seem to have to traverse most of the textfile until I receive a symbol 
match for lookup?


Thanks in advance as always,

John.


  

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Array with text named indices?

2010-03-11 Thread Jack
[msgfile] from zexy ?
++

Jack


Le jeudi 11 mars 2010 à 06:18 -0800, saint a écrit :
 Hi all,
 
 Does anybody know of a way of storing a bunch of data in an array-style 
 container that uses a text-based name instead of an index number to lookup 
 values?
 
 Hopefully with a save to disk feature? (like textfile)
 
 Basically I'm looking for an object that can store something like...
 
 blahBlahBlahItem 0.5678;
 strawberryJam 71;
 underwearForSwimming 0;
 endangeredLunchbox 1;
 
 
 It seems that I could use textfile for this but my programming is cumbersome 
 for anything that's not just adding to the list. (i.e. changing the value of 
 'endangeredLunchbox' to 2.)
 And I seem to have to traverse most of the textfile until I receive a symbol 
 match for lookup?
 
 
 Thanks in advance as always,
 
 John.
 
 
   
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Array with text named indices?

2010-03-11 Thread IOhannes m zmoelnig
On 2010-03-11 15:25, Jack wrote:
 [msgfile] from zexy ?

zexy's [index] will map symbols to integer id's.

or more generic solution is PDContainer's [f_map]

fgmasdr
IOhannes



smime.p7s
Description: S/MIME Cryptographic Signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list