Monday, February 1, 2010

private working

I was able to use a simple solution on #133. What I did was implement one line of code

aCode = aCode.replace(/(private)/g, "var");

I added this to line 82(about) of the source. This was just to test, but it worked. You can see the implementation here. This is the Processing.js source I am now using.

I just remembered I need to make sure it doesn't parse any character strings with the word private in it. I need to test it for use with private functions, check syntax variations, and debug.

Just noticed the "private" member is not actually private, probably because it's still creating a "this.variable". So in the end it looks like "var this.i;" which, probably is not private as I expect.

No comments:

Post a Comment