Sign in to follow this  
Followers 0
VicTT

Var declaration within a func

6 posts in this topic

Does any of you know FOR CERTAIN if

Local $variable

and

Local $variable=""

produce EXACTLY the same C++ code/effect at runtime?I mean, by writing the second one, I am assuming the interpretor is smart enough to consider it identical to the first and not give me any speed overhead..


[quote]Together we might liveDivided we must fall[/quote]

Share this post


Link to post
Share on other sites



Maybe not certain, but this test shows (for me) that not assigning the variable is a little quicker:

J

AssignmentTest01.au3


If I am too verbose, just say so. You don't need to run on and on.

Share this post


Link to post
Share on other sites

Does any of you know FOR CERTAIN if

Local $variable

and

Local $variable=""

produce EXACTLY the same C++ code/effect at runtime?I mean, by writing the second one, I am assuming the interpretor is smart enough to consider it identical to the first and not give me any speed overhead..

<{POST_SNAPBACK}>

AutoIt script are not compile in the sense of generating binary code. It produce pseudo code. so the $variable="" generate more work to do. So Jdickens is right when he say little quicker :whistle:

Share this post


Link to post
Share on other sites

Yep..you're right, thanx for your replies..

@jpm

I am perfectly aware that it doesn't produce machine-code, that's why I said it produces C++ code..(it calls it at runtime) :whistle:


[quote]Together we might liveDivided we must fall[/quote]

Share this post


Link to post
Share on other sites

Yep..you're right, thanx for your replies..

@jpm

I am perfectly aware that it doesn't produce machine-code, that's why I said it produces C++ code..(it calls it at runtime) :dance:

<{POST_SNAPBACK}>

it is not producing even a c++ code but as I say pseudo code based on autoit language :whistle:

Share this post


Link to post
Share on other sites

We agree :whistle:..It calls C++ code at runtime :dance::D:D..:dance:..jpm..I submit manual corrections to you?All which I find?


[quote]Together we might liveDivided we must fall[/quote]

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  
Followers 0