Group {} feature request

Hi Chris,

Low-prio feature request:

Can you make the folder/group object take parameters that will be applied to each of the variables in the folder?

i.e. instead of
group g {
var1 = 1 (persistant=true)
var2 = 2 (persistant=true)
}
this
group g (persistant_default = true) {
var1 = 1
var2 = 2
}

Not sure if this is really the best solution, but might be worth it to save code redundancy?

Mark

https://mworks.github.io/documentation/latest/components/folder.html

Hi Mark,

I’m not crazy about this idea. I think statement macros are a better approach:

%define pvar ()
    var (persistant = YES)
%end

pvar var1 = 1
pvar var2 = 2

Chris

That’s a good idea. Thanks,
Mark