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

Get rid of method redefinition warnings during precompile stage #538

Merged
merged 4 commits into from
Nov 27, 2019

Conversation

ali-ramadhan
Copy link
Member

This PR finally gets rid of all the Casette warnings and a few other similar warnings due to method redefinitions.

Had to refactor the FPlane constructor to avoid a method redefinition. I chose to infer the float type FT from the inputs and remove the option to explicitly pass in an FT. This is a breaking change (hopefully a minor one) but I couldn't think of another approach that would less intrusive.

Suggestions welcome for other ways to resolve the ambiguity between FPlane constructors.

Resolves #537
Resolves #366

@ali-ramadhan ali-ramadhan added bug 🐞 Even a perfect program still has bugs cleanup 🧹 Paying off technical debt labels Nov 27, 2019
src/coriolis.jl Outdated Show resolved Hide resolved
@ali-ramadhan ali-ramadhan merged commit 581da73 into master Nov 27, 2019
@ali-ramadhan ali-ramadhan deleted the ar/casette-warnings branch November 27, 2019 22:35
@vchuravy
Copy link
Collaborator

Don't depend on master grrml...

@ali-ramadhan
Copy link
Member Author

Ah what would be a better way of doing this than ] add Cassette#master?

@vchuravy
Copy link
Collaborator

Waiting for me to tag a version of Cassette.

@ali-ramadhan
Copy link
Member Author

Yeah that would have been cleaner. Will ask or wait in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Even a perfect program still has bugs cleanup 🧹 Paying off technical debt
Projects
None yet
3 participants