bcc
bcc copied to clipboard
Accessing global with prepended dot (.myVar) not possible
this works as (designed) in "legacy" but no longer in NG:
SuperStrict
Framework Brl.StandardIO
Type Test
Field s:String
End Type
Global testA:Test = New Test
testA.s = "Hello"
Function PrintText()
Local testA:Test = New Test
testA.s = "World"
Print (.testA.s)
Print (testA.s)
End Function
PrintText()
output:
Compile Error: Expression of type 'Test' cannot be invoked.