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

Provide a mix-in to class based models to allow deep copies #31

Open
mdbergmann opened this issue Jun 14, 2021 · 0 comments
Open

Provide a mix-in to class based models to allow deep copies #31

mdbergmann opened this issue Jun 14, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@mdbergmann
Copy link
Owner

cl-gserver currently only sets (setf) the value of state in (cons back-msg state) to the actor state. It does not make a deep copy to maintain immutable environments. This is up to the user.
However, it could provide at least a model mix-in that defines a generic function make-copy which implementer scan implement to make a deep copy of a component that cl-gserver could automatically use when setfing the state.

@mdbergmann mdbergmann added the enhancement New feature or request label Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant