Modify

Opened 15 years ago

Closed 15 years ago

#1884 closed Bug (Wont Fix)

Strings concatenation

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: 3.3.6.1 Severity: None
Keywords: Cc:

Description

This code works despite error in expression

Dim $line2 = @CRLF & 'Line 2'
Dim $line3 = @CRLF & 'Line 3'
Dim $line4 = @CRLF & 'Line 4'
Dim $text = 'Line 1' & $line2 $line3 & & $line4 ; Error in expression
MsgBox(0, '', $text)

Attachments (0)

Change History (6)

comment:1 by mvg, 15 years ago

No bug I think.

  • Error is from au3check. Which is a tool to help you to NOT to write bad formatted code.
  • And AutoIt being smart enuff to figure out badly written code ... that can't be a bug either. :P

Although interesting "behind the scene" feature though.
(probably already noted on forum. but finding it ... )

#AutoIt3Wrapper_run_au3check=n
Dim $s1='1',$s2='2',$s3='3',$s4='4',$s5='5',$s6='6'
MsgBox(0,'test1',$s1$s2$s3$s4$s5$s6&&&&&) ;; "123456"
MsgBox(0,'test2','1'"2"'3'"4"'5'"6"&&&&&) ;; "123456"
MsgBox(0,'test2',$s1+$s2 $s3+$s4 $s5+$s6&&) ;; "1515"  o.O  ... puzzle time.

in reply to:  1 ; comment:2 by anonymous, 15 years ago

I have this "error" in one program. Compiled EXE ends sometimes with error, but script (AutoIt3.exe script.au3) works fine. I'm not sure where problem is, because compiled simple script works.

in reply to:  2 ; comment:3 by mvg, 15 years ago

Replying to anonymous:

I have this "error" in one program. Compiled EXE ends sometimes with error, but script (AutoIt3.exe script.au3) works fine. I'm not sure where problem is, because compiled simple script works.

?
This not the forum section!
(Stay on target, or get ignored (by me at least).)

in reply to:  3 comment:4 by anonymous, 15 years ago

I'm sorry, I didn't mean it as request for help. I just would to show, why I thought it was bug.

comment:5 by mvg, 15 years ago

Fare enuff.
But if your not sure about something being a bug. Forum is generally the better place to find out. (Or include it in the report. forum way preferred of course.)

comment:6 by Jon, 15 years ago

Resolution: Wont Fix
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.