print command - new functionality ?

Hi,


I did noticed today some new functionality of command print().


When i used as a message text: "ERROR: ......" it shows me as an error line i swift compilator ?

Just wanted to printout comment on console about the wrong action in my app.

Is it something new, can not find any information about that it should act like this.


line 1 : print("error: just for test")

line 2 :print("ERROR Article is not correct!!!")

line 3 :print("ERROR: Article already registered - can not register twice!!!")

line 4 :print("ERROR Article has been registered already")



line 3 act as compilator error.

Replies

Just don't understand your question.


I did noticed today some new functionality of command print().

What is new functionality ?

New compared to what ? Which versions of XCode ?


line 3 :print("ERROR: Article already registered - can not register twice!!!")

What error message do you get from compiler ?


I tested this

print("ERROR: Article already registered - can not register twice!!!")


and it works perfectly