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

cpp: Rename result::raw() to result::release_raw() #293

Merged
merged 2 commits into from
May 21, 2019

Conversation

chfast
Copy link
Member

@chfast chfast commented May 15, 2019

No description provided.

@chfast chfast requested review from axic and gumb0 May 15, 2019 14:55
@@ -2,6 +2,8 @@

## [6.2.2] - unreleased

- Changed: [[#293](https://github.com/ethereum/evmc/pull/293)]
In C++ API `evmc::result::raw()` renamed to `evmc::result::release_raw()`.
Copy link
Member

Choose a reason for hiding this comment

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

Is this breaking?

Copy link
Member

Choose a reason for hiding this comment

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

I think it is, but the comment should at least be merged into 6.2

Copy link
Member Author

Choose a reason for hiding this comment

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

It's breaking, but 6.2 has broken C++ API anyway. Besides, this method is used internally.

Copy link
Member

Choose a reason for hiding this comment

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

Just checked, raw was introduced in 6.2.1 via #257. I don't think renaming it is fixing a bug, the bug was fixed before the renaming, wasn't it?

@chfast chfast changed the base branch from release/6.2 to master May 16, 2019 06:57
@chfast
Copy link
Member Author

chfast commented May 16, 2019

Based on master.

Copy link
Collaborator

@jakelang jakelang left a comment

Choose a reason for hiding this comment

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

leak_raw sounds ok as well. release_raw sounds to me like a destructor or something that releases the associated resources.

@axic
Copy link
Member

axic commented May 21, 2019

acquire_raw ?

@chfast chfast changed the title cpp: Rename result::raw() to result::release_raw() cpp: Rename result::raw() to result::acquire_raw() May 21, 2019
@chfast
Copy link
Member Author

chfast commented May 21, 2019

Renamed to acquire_raw().

@gumb0
Copy link
Member

gumb0 commented May 21, 2019

But "acquire" is the opposite of what happens. Maybe it could look fine if it were a free function like evmc_res = acquire_raw(res), but res.acquire_raw() look like result acquires something.

@chfast chfast changed the title cpp: Rename result::raw() to result::acquire_raw() cpp: Rename result::raw() to result::release_raw() May 21, 2019
@chfast chfast merged commit 37a5b8a into master May 21, 2019
@chfast chfast deleted the cpp_result_release_raw branch May 21, 2019 09:24
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.

4 participants