If I have a function that suppose to return a value but I call it without assigning it to a variable, is it "fine" or a mistake?
Let say I have this function:
Let say I have this function:
B4X:
Sub MyMap As Map
AnotherValue = 6
Return CreateMap("key": 1)
End Sub
B4X:
Sub Process_Globals
Private AnotherValue As Int
End Sub
Sub AppStart (Args() As String)
Log(AnotherValue)
' Normal way
'Dim map1 As Map = MyMap
'Log(map1)
' Not sure
MyMap
Log(AnotherValue)
End Sub