oxinabox / MagneticReadHead.jl

A cassette-based debugger | The Other Debugger
MIT License
50 stars 6 forks source link

Allow assignment to arguments #4

Closed oxinabox closed 5 years ago

oxinabox commented 5 years ago

This should be pretty easy, just fix the code that interpolates the argument names into user entered code, to mastch on x = __ and then do an actual assignent, into our name2arg dictionary.

then the values of this dictionary would need to be passed in when we call the real function we brokepointed before.

The name2arg dictionary would need to become an ordered Dict, to make this work.

oxinabox commented 5 years ago

much less trivial after #23. needs rethinking You can mutate contents in place but I'm not sure mutating bindings is possible