Jump to content
Sign in to follow this  
PhilHibbs

Evaluation of Const expressions

Recommended Posts

PhilHibbs

Global Const $_COORD = _
             "short X;" & _
             "short Y"

Is this concatenation performed once when the declaration is evaluated, or every time it is used in the script?

Share this post


Link to post
Share on other sites
trancexx

Thanks, that (plus another ConsoleWrite at the start) has confirmed that it is evaluated once before it is used.

No. It's evaluated once when the line with declaration is processed by the AutoIt. Not when used (it may never be used for that matter).

One thing more.... No, no, I'm kidding. Nothing more.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
PhilHibbs

No. It's evaluated once when the line with declaration is processed by the AutoIt. Not when used (it may never be used for that matter).

That's what I meant. Before it is used, as against when it is used. Bad wordage from me.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×