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
new Java features (Read 1313 times)
new Java features
Nov 16th, 2009, 1:33pm
 
enums!
templates!
etc!!!!
please!!!
also I'd love to see better support for opengl pixel shaders for pixel operarions and soon support for opencl.
I hope somebody does an universal ARtoolkit wrapper which also worked in mac.
Re: new Java features
Reply #1 - Nov 17th, 2009, 2:46am
 
There are no templates in Java, perhaps you mean generics.
They are planned (there is a related bug entry) but they are hard to add, because authors has to inject Processing's special syntax sugar in Java 1.5's grammar, which isn't trivial (and nobody else did it either: after all Processing is open source! but it needs some good knowledge of the Antlr parser...).

Note: you can use this syntax in a .java file. But loosing there the direct access to functions (have to carry around a PApplet variable).
Page Index Toggle Pages: 1