Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot use slot as class variable: Raise explicit error #4314
I tried to make BalloonEngine class variables
This might interest you @MarcusDenker
Class Variables and Slots are two different entities: You can not use a Slot as a class variable.
(this might be possible to unify later, but even then this unified variable would need to implement different code for both the slot or the class var case and might be done via some additional layer,
This means, if you want to have a "Weak Class Variable" you have to implement this, see ExampleClassVariable as an example.
I will add code to detect when people try to use slots as class vars and raise a nice error message.
Sadly I can not commit as my image does not allow me to make PRs (I press on "Ok" and nothing happens)
What needs to be done: add this method to Slot: