-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Difference between reopenClass and direct assignment? #445
Comments
using |
Doesn't seem to work:
now: however, if I do this:
now Is it expected behavior that one needs to use reopenClass before subclassing, or is that a bug? |
@pixelcort, what @raycohen is saying is that subclasses don't receive properties not defined via It seems like you were expecting it to modify subclasses if you call I think that we've been able to demonstrate how |
@wagenet, I specifically said that I see now that the intended purpose of reopenClass is to be used before subclassing. I would have closed this issue but you apparently already closed it for me. |
@pixelcort Sorry, I guess I misunderstood you. Glad we got it sorted out though. |
I'm curious as to the difference between
and
Is the former just a way to set a bunch of properties on the class, or does it actually do something more interesting?
The text was updated successfully, but these errors were encountered: