PratchettLovesYou / Issues

An issue-tracker for the Paws language (as opposed to any particular implemenation.)
2 stars 0 forks source link

What does Execution#clone do about locals? #13

Open ELLIOTTCABLE opened 10 years ago

ELLIOTTCABLE commented 10 years ago

There's been discussion of some sort of forking-data-structure as the locals type, which obviously adds untold complexity to the language … but failing that, we either:

Both have upsides and downsides: the former leaves any execution that gets called (because call-pattern clones; including those that co-consume), no longer sharing locals with any other executions of the same Script, which may be rather-less-than-intuitive. :P

(The latter, obviously, also means needing to work some implicit ownership-management shit into locals accesses. Not sure exactly what to do about that, could get messy quick.)