Sorry. I'm confused about global variables. In MDAPL 6.4, it states that one can set them and read them. But, when I try in the context of a function, it doesn't seem to work:
:Namespace TestGlobals
Words←⍬
add_word←{
Words←Words,⍵
}
:EndNamespace )clear
clear ws
]import # '/Users/williamallen/src/TestGlobals/TestGlobals.apl'
Imported: # ← /Users/williamallen/src/TestGlobals/TestGlobals.apl
⎕CS TestGlobals
Words
add_word 'word'
Words
Am I misunderstanding what MDAPL is saying or just doing it wrong?