Jump to content

v3.0.88 available in unstable


Jon
 Share

Recommended Posts

  • Administrators

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

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Administrators

B)

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 :whistle: )

Link to comment
Share on other sites

: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:
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Administrators

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:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...