Skip to content

Allow runtime to keep copy of config instead of reference#1

Merged
bzawisto merged 1 commit intomasterfrom
ZIL-4652-SputnikVM-Execution-in-Continuation-Passing-Style
Dec 12, 2022
Merged

Allow runtime to keep copy of config instead of reference#1
bzawisto merged 1 commit intomasterfrom
ZIL-4652-SputnikVM-Execution-in-Continuation-Passing-Style

Conversation

@bzawisto
Copy link
Copy Markdown

No description provided.

@bzawisto bzawisto requested a review from valeryz December 12, 2022 08:17
Comment thread runtime/src/lib.rs
impl<'config> Runtime<'config> {
impl Runtime {
/// Create a new runtime with given code and data.
pub fn new(
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think we better not break the public APIs? What if we keep accepting a reference to config, but just clone it inside the new method?

I guess you won't need the 'config lifetime in this case too, as the reference will only live long enough to be cloned.

@bzawisto bzawisto force-pushed the ZIL-4652-SputnikVM-Execution-in-Continuation-Passing-Style branch from c193343 to 4fab033 Compare December 12, 2022 11:43
@bzawisto bzawisto merged commit e6b9b9d into master Dec 12, 2022
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