-
-
Notifications
You must be signed in to change notification settings - Fork 285
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
Pluto doesn't like adding constructors to structs #732
Comments
This is on purpose, handling a mix of structs definitions and methods is very diffcult, because:
|
I get that it's difficult, but I feel this issue should stay open (whether or not anyone is actively working on it). This is certainly an issue other people will run into at some point so it'd be good for them to see that there's already an open issue. If you want, you can even use the 'Won't Fix' label. |
If you want a workaround somehow, the following works. (Not that I encourage the following style)
|
Yeah, one can also just do @eval $(:Temp)() = Temp(42) Still pretty unsightly, but a bit better. |
I don't recommend this to general users -- it will lead to lots of hidden issues later. Use a |
Compare
versus
Seems like a bug in the algorithm for detecting multiple incompatible definitions of something.
The text was updated successfully, but these errors were encountered: