Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending IGraphicObject #8

Open
superseed77 opened this issue Feb 28, 2014 · 2 comments
Open

Extending IGraphicObject #8

superseed77 opened this issue Feb 28, 2014 · 2 comments

Comments

@superseed77
Copy link

When for some reason I extend IGraphicObject I can access all properties of IGraphicObject from my extended class (eg. visible, parent)... except one : color.

This property collide in some way with processing. So so it will not compile if i refer to this.color.

Is it possible for you to rename it to icolor or something like that
Thanks a lot

@sghr
Copy link
Owner

sghr commented Feb 28, 2014

I guess that happens only when you compile in Processing IDE because Processing's preprocessor seems to treat "color" as a reserved word. Using eclipse or just simply compiling with javac would not have this issue.
Although I didn't expect people touches those internal methods and fields from Processing, I'll consider about changing the field name "color" to something else (likely to be "clr"), because now I see people touching those area like you do. I'll let you know when I make the decision.

@superseed77
Copy link
Author

You're right: the pb arise in processing ide. Anyway I found a workaround
Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants