Hello.
I am using the [pool] hierarchical storage object. for some reason, when my stored lists in any data key begin with _-1_, the and I use the GET message to read it, the value outlet gives me : list -1 0 0 0 0 .....
Instead of the list beginning with -1, as it is stored in the .dat file, the symbol _list_ is prepended to the actual value stored. It behaves similarly when the stored list begins with any negative integer. But when it begins with any positive integer or any float (positive or neagative) the value comes out as stored (with no prepend of the symbol "list").
Also, this only occurs when the data is read from the .dat file, not when the value of a key is set and retreived from ram.
This is a problem, because I patch the value outlet to an [unpack] object and it makes a difference if the first item in the list is a symbol or a float.
am I doing something wrong? if not, is this a bug? if not, how do I work around it? is there a way to chop off the first atom in a message depending if is a symbol or a float?
thanks a lot. Alexander
Hi Alexander, thanks for your report! That was a bug. You can get the fixed version from cvs tomorrow morning CET.
best greetings, Thomas
----- Original Message ----- From: "01ek" 01ek@sat.qc.ca To: pd-list@iem.kug.ac.at Sent: Friday, April 04, 2003 12:48 AM Subject: [PD] [pool] by Thomas Grill : slight problem
Hello.
I am using the [pool] hierarchical storage object. for some reason, when my stored lists in any data key begin with _-1_, the and I use the GET message to read it, the value outlet gives me : list -1 0 0 0 0 .....
Instead of the list beginning with -1, as it is stored in the .dat file, the symbol _list_ is prepended to the actual value stored. It behaves similarly when the stored list begins with any negative integer. But when it begins with any positive integer or any float (positive or neagative) the value comes out as stored (with no prepend of the symbol "list").
Also, this only occurs when the data is read from the .dat file, not when the value of a key is set and retreived from ram.
This is a problem, because I patch the value outlet to an [unpack] object and it makes a difference if the first item in the list is a symbol or a float.
am I doing something wrong? if not, is this a bug? if not, how do I work around it? is there a way to chop off the first atom in a message depending if is a symbol or a float?
thanks a lot. Alexander