Modify

Opened 9 years ago

Closed 9 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 follow-up: Changed 9 years ago by mvg

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.

comment:2 in reply to: ↑ 1 ; follow-up: Changed 9 years ago by 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.

comment:3 in reply to: ↑ 2 ; follow-up: Changed 9 years ago by mvg

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).)

comment:4 in reply to: ↑ 3 Changed 9 years ago by anonymous

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 Changed 9 years ago by mvg

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 Changed 9 years ago by Jon

  • Resolution set to Wont Fix
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.