hi,
i'm wondering if there's a way to use the getsize object to return the size of a regular array?
now that regular arrays and data structures are more integrated...
thanks,
john.
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
There is an object...
[arraysize arrayname]
You can also send a 'set' message to it to change the targetted array...
Mike
On 12/20/06, saint saintidle@yahoo.com wrote:
hi,
i'm wondering if there's a way to use the getsize object to return the size of a regular array?
now that regular arrays and data structures are more integrated...
thanks,
john.
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Dec 21, 2006, at 6:43 AM, Steffen wrote:
On 20/12/2006, at 19.09, Mike McGonagle wrote:
There is an object...
[arraysize arrayname]
But that is from flatspace (whatever that is), hence not internal.
I think thats "between the lines" of John's question.
Yup, [arraysize] was written because there is no internal method for
doing this. I think that's still the case AFAIK.
.hc
Looking at things from a more basic level, you can come up with a
more direct solution... It may sound small in theory, but it in
practice, it can change entire economies. - Amy Smith
On Wed, 20 Dec 2006, saint wrote:
i'm wondering if there's a way to use the getsize object to return the size of a regular array?
[getsize] is reserved to arrays that are elements of struct. It can't do it if the array is not an element of a struct. It's _that_ specific... as far as I know.
now that regular arrays and data structures are more integrated...
it's not a matter of how much they're integrated, it has to do with the level of nesting. e.g. with [getsize] you can find the size of an array that is inside of an array, but you can't get the size of an array itself.
But I'd like Frank to confirm me that.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada