mdbergmann / cl-gserver

Sento - Actor framework featuring actors and agents for easy access to state and asynchronous operations.

Home Page:https://mdbergmann.github.io/cl-gserver/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mdbergmann opened this issue · comments

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.