rusty icon indicating copy to clipboard operation
rusty copied to clipboard

Add support for alias `a AT b` initializers targeting local members

Open mhasel opened this issue 1 year ago • 0 comments

Currently, reference initializers are only supported for global target variables (and stack-local members, i.e. functions and VAR_TEMP). It would be nice to extend the alias functionality to work with local references in stateful POUs also, e.g.:

FUNCTION_BLOCK foo
    VAR
        foo AT bar : DINT;
        bar : DINT;
    END_VAR
END_FUNCTION_BLOCK

mhasel avatar Sep 02 '24 14:09 mhasel