Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

Referencing a child class within a class creates two classes (two tables) #8

Open
oeed opened this issue Nov 27, 2015 · 0 comments
Open

Comments

@oeed
Copy link
Owner

oeed commented Nov 27, 2015

If, for example, the View class mentions the Container class (a sub-class of View) as a ValueType in its code two View classes will be created (i.e. it's loaded twice).

This is because the class can't actually be compiled and used as a super until all the functions and properties are loaded. Hence, when Container is referenced it loads the View class again because it hasn't yet been defined. This causes issues with :typeOf and possibly even more issues.

One way of solving this could be making fake classes or inserting it afterward. It's a bit of pain in the ass to fix though...

oeed added a commit that referenced this issue Nov 27, 2015
This will need to be undone in the future
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant