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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: