Jump to content
Sign in to follow this  
Jon

v3.0.88 available in unstable

Recommended Posts

Jon

http://www.hiddensoft.com/autoit3/files/unstable/

Note that I rewrote most of the "If" code so please check that.

Added: ElseIf

Changed: All block structures (IF/WHILE/FOR, etc.) are now checked before execution.

Fixed: Better detection of illegal nesting, e.g.:

if 1 = 1

while 1

endif

wend

Changed: (Internal) lots of error checking code removed as a nice side effect of

initial block structure checking

Share this post


Link to post
Share on other sites
Jos

Found a bit of confusion error message.. :whistle:

When you are missing a Then in a block If statement it gives now the error:

Error: "EndIf"statament with no matching "If" statement.

If 1=1
  ; code
endif

its easy in this example, but I tested it with a 600 lines script with lots of If..Endif statements and at first was looking for a missing If when I got this error.

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Valik

Added: ElseIf

Who are you and what did you do with the real Jon? He would of never added ElseIf, he doesn't like them. :whistle:

Share this post


Link to post
Share on other sites
jpm

:P

Moment of weakness.

I've started to get the hang of them in C too, so they didn't seem quite so evil.  And after I checked the code it seemed easy to add (that's if my assumptions on how it should work are OK :lmao: )

I hope david will read this message :whistle:B):angry::evil:

Share this post


Link to post
Share on other sites
tylo

Hmm. Select .. EndSelect is redundant now, but I don't think you dare removing it. B)

select
case X1
  Y1
case X2
  Y2
case else
  Y3
endselect

; identical to (even a line shorter):
if X1 then
  Y1
elseif X2 then
  Y2
else
  Y3
endif

You may as well follow up with Switch .. Case .. EndSwitch :whistle:


blub

Share this post


Link to post
Share on other sites
Jon

I much prefer the Select for large sections - elseif for small ones. I still find elseif very difficult to read. Maybe it's because it's not symmetrical enough. You've probably noticed my odd block layouts in the C source - can't read a thing otherwise B)

And I really like the Select in v3 and I'm definately not changing it. :whistle:

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.