Skip to content

Fix warning when non-stock functions are used by stock functions.#352

Merged
dvander merged 1 commit intomasterfrom
bug349
Aug 23, 2019
Merged

Fix warning when non-stock functions are used by stock functions.#352
dvander merged 1 commit intomasterfrom
bug349

Conversation

@dvander
Copy link
Copy Markdown
Member

@dvander dvander commented Aug 23, 2019

Bug: issue #349
Test: warnings/unused-from-member-function.sp

Bug: issue #349
Test: warnings/unused-from-member-function.sp
Copy link
Copy Markdown
Member

@Headline Headline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if a stock calls a non stock, should we not just error on that?

@dvander
Copy link
Copy Markdown
Member Author

dvander commented Aug 23, 2019

I think you're going that route, you might as well remove stock entirely. Its value is maximized when used sparingly, and that would encourage it to appear everywhere.

@dvander
Copy link
Copy Markdown
Member Author

dvander commented Aug 23, 2019

Note: this makes it behave more like "static inline" in C++.

@dvander dvander merged commit 79454d3 into master Aug 23, 2019
@dvander dvander deleted the bug349 branch August 23, 2019 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants