You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to expose variables (not functions) to the expressions that are not simple data items but I cannot find a way to do it .
Specifically - I am writing a 6502 emulator debugger. I want to expose the registers as variables in expressions. I can find no way to do it because of this signature:
In the Context trait. It requires me to return a reference to a Value, if the value is looked up or computed in any way I cannot do that. I note that :
There was #104 that may solve this, but it is outdated and stale. Feel free to make a new one, but I don't have much time to review or merge at the moment.
Cow because the value may be borrowed or a value. In case of a context that
stores values as they are, cloning them every time they are read is
wasteful.
Breaking changes are fine.
I would like to expose variables (not functions) to the expressions that are not simple data items but I cannot find a way to do it .
Specifically - I am writing a 6502 emulator debugger. I want to expose the registers as variables in expressions. I can find no way to do it because of this signature:
In the
Context
trait. It requires me to return a reference to a Value, if the value is looked up or computed in any way I cannot do that. I note that :returns the actual value not a reference. It would be a lot simpler if get_value did the same.. Is there some magic trick I am missing
The text was updated successfully, but these errors were encountered: