Greetings:
I am messing around with the new map behavior in the beta. Specifically I am running the code found in post #5 here -> '?do=embed' frameborder='0' data-embedContent>>
Although that code works, "Syntax Check Beta" fails the code at the point where I simulate an object. So I guess my question is this: Is my syntax "illegal but it happens to work"? Or is it legal but the syntax check program simply hasn't been updated yet? Or finally should I be doing this a different way?
Code here again so you don't have to follow a link:
#include <MsgBoxConstants.au3>
Local $aObjs[2] = [NewFoo(), NewBar()]
For $i = 0 To UBound($aObjs) - 1
Local $sMsg = ($aObjs[$i].Output)() ; <-- This line of code is flagged as a syntax error
MsgBox($MB_SYSTEMMODAL, "Test", $sMsg)
Next
Func NewFoo()
Local $mPseudoObj[]
$mPseudoObj["Output"] = FooOutput
Return $mPseudoObj
EndFunc
Func FooOutput()
Return "Foo"
EndFunc
Func NewBar()
Local $mPseudoObj[]
$mPseudoObj["Output"] = BarOutput
Return $mPseudoObj
EndFunc
Func BarOutput()
Return "Bar"
EndFunc
[EDIT] Corrected minor stupidity on my part in the code...