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

Rename evmc_instance -> evmc_vm #430

Merged
merged 1 commit into from
Sep 25, 2019
Merged

Rename evmc_instance -> evmc_vm #430

merged 1 commit into from
Sep 25, 2019

Conversation

chfast
Copy link
Member

@chfast chfast commented Sep 24, 2019

No description provided.

@chfast chfast added the changelog Deserves a CHANGELOG entry label Sep 24, 2019
@chfast chfast requested review from axic and gumb0 September 24, 2019 22:00
@chfast chfast force-pushed the rename_instance branch 5 times, most recently from e941715 to e90c13a Compare September 25, 2019 08:11
@chfast chfast marked this pull request as ready for review September 25, 2019 08:11
{
ec = set_error(EVMC_LOADER_INSTANCE_CREATION_FAILURE,
"creating EVMC instance of %s has failed", filename);
ec = set_error(EVMC_LOADER_VM_CREATION_FAILURE, "creating EVMC VM of %s has failed",
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure about this error message.

Copy link
Member

Choose a reason for hiding this comment

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

would be great if it could mention the name of the function it called, but it doesn't look easy

@@ -408,12 +408,12 @@ class VM
}

private:
evmc_instance* m_instance = nullptr;
evmc_vm* m_instance = nullptr;
Copy link
Member Author

Choose a reason for hiding this comment

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

I have left the name m_instance because m_vm would be worse. This can also be m_handle (as in Go) or m_vm_ptr.

@chfast chfast force-pushed the rename_instance branch 2 times, most recently from b9f3582 to 1d4e084 Compare September 25, 2019 11:12
@chfast chfast merged commit fca9dfa into master Sep 25, 2019
@chfast chfast deleted the rename_instance branch September 25, 2019 19:41
@axic
Copy link
Member

axic commented Sep 25, 2019

What was the reasoning behind this?

@chfast
Copy link
Member Author

chfast commented Sep 25, 2019

What was the reasoning behind this?

Looks better. Instance is like class Class and comes from old days when this project was about VM concept only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog Deserves a CHANGELOG entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants