Sharing memory over multiple narratives #20
Labels
design
enhancement
New feature or request
fate
Issues relating to the Fate language
wyrd
Issues relating to the Wyrd language
Milestone
Currently, there is nothing put in place to facilitate using the same memory elements over multiple narratives.
To do this manually, one would simply add "delete all memory elements whose name starts with
.
" to the(end)
instruction and "do not change value if it already exists" to the(initialize ...)
instruction.While it can work, it's definitely an unsafe hack:
To make this more user-friendly, we could add
(shared [TYPE] {String})
alternative to(global [TYPE] {String})
, which would denote variables that are shared across multiple narratives. These variables would not be allowed to have any lambda functions member, nor procedures, nor pointers to non-shared variables.(end)
would thus delete all memory elements but these, and(initialize ...)
should do the "do not change if it already exists" thing.The text was updated successfully, but these errors were encountered: