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.
Page Index Toggle Pages: 1
array (Read 656 times)
array
Feb 3rd, 2010, 6:34pm
 
I notice the word "array" is  a recognised word in Processing (it lights up orange when you type it). What is it used for, does anyone know? Because you don't actually use the word when working with arrays, as far as I know....
Re: array
Reply #1 - Feb 3rd, 2010, 7:36pm
 
If I'm not mistaken, it should be proceeded by a number.
Re: array
Reply #2 - Feb 4th, 2010, 1:32am
 
Aha, found it!
Look at lib/keywords.txt
array      KEYWORD2      PVector_array_
array() is a method of PVector. You can see that cross() is highlighted as well, for example.
Note that's only an highlight facility, these are not real keywords, nothing prevents you from using these names as identifiers.
Page Index Toggle Pages: 1