Skip to content

Begin locking down function types.#80

Merged
dvander merged 1 commit intomasterfrom
lockdown-funcs
Jul 8, 2014
Merged

Begin locking down function types.#80
dvander merged 1 commit intomasterfrom
lockdown-funcs

Conversation

@dvander
Copy link
Member

@dvander dvander commented Jul 8, 2014

As part of the recent type system overhaul, automatic coercion of Functions to non-functions (and vice versa) became a compile-time error. They no longer flow into "any" or variadic lists. However, it's still possible to re-tag functions, for example, Function:-1 or _:OnPluginStart.

This patch deprecates such forced coercions with a warning. This set off some problems in our includes, so I updated them to use INVALID_FUNCTION where appropriate.

To get inline functions or lambdas working, we will have to make this a full-stop error. But for now it's okay to test the waters.

dvander added a commit that referenced this pull request Jul 8, 2014
Begin locking down function types.
@dvander dvander merged commit aa299d1 into master Jul 8, 2014
@dvander dvander deleted the lockdown-funcs branch July 8, 2014 16:23
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.

1 participant