Sign in to follow this  
Followers 0

MustDeclareVars

3 posts in this topic

Posted

Not really a bug, but seems related to http://www.autoitscript.com/forum/index.ph...wtopic=7606&hl=

What *should* the following code do? The current behavior make sense but is odd at first glance.

Opt("MustDeclareVars", 1)
Dim $x = $x = $x
MsgBox(4096,"Interesting", $x)

Share this post


Link to post
Share on other sites



Posted

Not really a bug, but seems related to http://www.autoitscript.com/forum/index.ph...wtopic=7606&hl=

What *should* the following code do?  The current behavior make sense but is odd at first glance.

Opt("MustDeclareVars", 1)
Dim $x = $x = $x
MsgBox(4096,"Interesting", $x)

It should fail. I'll put in in Open for next version to be fixed.

Share this post


Link to post
Share on other sites

Posted

Fix has been submitted to JP for this.

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0