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

Crazy Anton Solution (TM) #32

Open
lethal-guitar opened this issue Jan 19, 2013 · 0 comments
Open

Crazy Anton Solution (TM) #32

lethal-guitar opened this issue Jan 19, 2013 · 0 comments

Comments

@lethal-guitar
Copy link
Collaborator

Instead of just copying the methods from a included trait T into a class C, a hidden class T' should be created, and inserted as a subclass of C. Other included traits will be inserted as subclasses of T'. Finally, by modifying the global class dictionary, the last included T' is swapped with C, so that it appears in place of the original C.

lauritzthamsen added a commit that referenced this issue Jan 19, 2013
code that swaps two classes, exchanges their names and lets the second class
adopt all instances of the other
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant