Skip to content

# and Global Variables #34

@rjdays

Description

@rjdays

I was having some issues caused by copying scripts and layout objects between two solutions which use different versions of #( name ; value ).

One version recognizes global variables, but the other version does not, so

#( "$$global" ; True )
when evaluated with the one version will return
$$global = 1;
but in in the other will return
$global=1;

I ran diff on the two and saw the change in behavior was related to how the sigil is treated:

"$" & Substitute ( name ; "$" ; "" ) & " = " & Quote ( value ) & ";¶"
was changed at some point to
Case ( Left ( name ; 1 ) ≠ "$" ; "$" ) & name & " = " & Quote ( value ) & ";¶"

There is no version history in the functions in my solutions. The most recent on GitHub doesn't recognize global variables. Is this expected behavior or a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions