Skip to content

Created GlobalForward and Forward methodmaps - #1004

Merged
Headline merged 10 commits into
alliedmodders:masterfrom
JoinedSenses:patch-4
May 29, 2019
Merged

Headline merged 10 commits into
alliedmodders:masterfrom
JoinedSenses:patch-4

Conversation

@JoinedSenses

@JoinedSenses JoinedSenses commented May 9, 2019 •

Copy link
Copy Markdown
Contributor

This PR introduces types GlobalForward and Forward by creating methodmaps for the two. Pretty straight forward. As usual, please let me know if something looks off or could use improvement.

Comment thread plugins/include/functions.inc Resolved
@JoinedSenses

Copy link
Copy Markdown
Contributor Author

Another thought I have regarding this is to add all Call_ functions as static to the methodmap

Comment thread plugins/include/functions.inc Resolved
Comment thread plugins/include/functions.inc Resolved
Comment thread plugins/include/functions.inc Resolved
Comment thread plugins/include/functions.inc Resolved
Comment thread plugins/include/functions.inc Outdated
}
};

methodmap Forward < GlobalForward {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How do you feel about PrivateForward? That is what we call it in the doc comment and it feels more balanced against GlobalForward (which is generally the one people are using anyway). That said, calling them "private" and "global" forwards has never really made sense and this is a good opportunity to change the terminology, some nomenclature around "managed" might be clearer?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It makes sense to have PrivateForward instead of just Forward. If not "private" and "global", you're suggesting "managed" and "unmanaged"? Something about these terms don't sit right with me, perhaps because it's terminology i've already come to terms with. That and "private"/"global" are referenced in a ton of places already, so it might be weird going back on that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Woah; what happened?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ill fix tonight, uncaught change when reverting whitespace commit

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This oversight has been addressed in the latest commit. 26eb127

@Headline Headline added the Feature Request user requested feature label May 24, 2019

@Headline Headline left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm cool with taking this

@Headline
Headline requested a review from asherkin May 28, 2019 08:23
Comment thread plugins/include/functions.inc Outdated
}
};

methodmap Forward < GlobalForward {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Woah; what happened?

This was an oversight on my end due to trying to revert changes.

@asherkin asherkin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Love it.

@asherkin
asherkin requested a review from Headline May 29, 2019 18:48

@Headline Headline left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good

@Headline
Headline merged commit 4f3c317 into alliedmodders:master May 29, 2019
@JoinedSenses
JoinedSenses deleted the patch-4 branch May 30, 2019 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature Request user requested feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants