group {} feature request

mhisted's Avatar

mhisted

13 May, 2019 07:49 PM

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

  1. Support Staff 1 Posted by Christopher Sta... on 13 May, 2019 07:54 PM

    Christopher Stawarz's Avatar

    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

  2. 2 Posted by mhisted on 13 May, 2019 09:30 PM

    mhisted's Avatar

    That's a good idea. Thanks,
    Mark

  3. Christopher Stawarz closed this discussion on 14 May, 2019 01:53 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac