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
generics (Read 314 times)
generics
Feb 18th, 2008, 2:39am
 
Can I somehow force Processing to compile the code using generics?

e.g.:

public Vector<Integer> weights = new Vector<Integer>();

won't compile
Re: generics
Reply #1 - Feb 18th, 2008, 3:24pm
 
Processing uses Java 1.4 so you can't use generics. Replacing the version of java it uses won't help since the preprocessor processing uses doesn't understand generics.
Page Index Toggle Pages: 1