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

[lang] Make the closure serializable. #888

Merged
merged 4 commits into from
Nov 27, 2018

Conversation

gallandarakhneorg
Copy link
Member

@gallandarakhneorg gallandarakhneorg commented Nov 18, 2018

In order to enable the scope to pass from one SRE kernel to another SRE kernel, the scope's closure must be serialized without the enclosing object (agent, behavior, etc.). In other words, only the scoping function and the values that are used into this functions must be serialized.

This PR fixes the SarlCompiler for generating a proxy class for each serializable closure. This proxy contains only the data that are used into the closure, without reference to the enclosing types of the closure.

see #885

Signed-off-by: Stéphane Galland galland@arakhne.org

@CLAassistant
Copy link

CLAassistant commented Nov 27, 2018

CLA assistant check
All committers have signed the CLA.

Signed-off-by: Stéphane Galland <galland@arakhne.org>
…ialization.

Signed-off-by: Stéphane Galland <galland@arakhne.org>
@gallandarakhneorg gallandarakhneorg merged commit 5e0114f into master Nov 27, 2018
@gallandarakhneorg gallandarakhneorg deleted the closure_serialization branch November 27, 2018 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants