hpi-swa / vivide

A Squeak/Smalltalk-based programming environment and framework that supports low-effort construction of graphical tools by employing a data-driven perspective and a script-based programming model.
MIT License
58 stars 9 forks source link

Add (scoped) script id mapping the be used during interpretation #285

Open marceltaeumel opened 5 years ago

marceltaeumel commented 5 years ago
{
   [:object | object] -> { #mapping -> { #groups -> #groupsAsLevel } }.
   #someScriptUsingGroups. "reference"
} asScript.

Script re-use would be more powerful if we can re-map some steps. For example, the regular #groups script does not add a new level to the model but inlines seperator objects. One could easily modify that from the outside when mapping any references to #groups to #groupsAsLevel, which would be a different treatment for grouping.