We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › how can i make array fields untouchable
Page Index Toggle Pages: 1
how can i make array fields untouchable? (Read 365 times)
how can i make array fields untouchable?
Jun 1st, 2009, 10:03am
 
Hi,

i have a question, is it possible to make some fields of an array untouchable?
Re: how can i make array fields untouchable?
Reply #1 - Jun 1st, 2009, 2:10pm
 
No.
Well, just avoid touching them...

Or wrap the array in an object and access it through an accessor (a function) that will check for read-only fields and either ignore these attempts to write there, or throw an error.
Page Index Toggle Pages: 1