Pages: 1 [2]   Go Down
Author Topic: Arduino Compiler doesn't compile a particular sketch.  (Read 2326 times)
0 Members and 1 Guest are viewing this topic.
Seattle, WA USA
Online Online
Brattain Member
Karma: 553
Posts: 46286
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What, exactly IS \". The \ is an escape character. It assigns special meaning to the character that follows. So, what special meaning is assigned to \"? The meaning is NOT the same as ". It is that special meaning that you are inserting into the variable c, not a ".

The second assignment does insert a " into c.

I still don't see a bug in the IDE. It is properly defining different meanings to " and \".

Offline Offline
Karma: 0
Posts: 38
Don't eat yellow snow.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Offline Offline
Shannon Member
Karma: 117
Posts: 10115
:(){:|:&};: TOX id: fcb8e918bef08581e23f6ddf9d4dba77697c25b217bf372736ed959a95fde36df5b8c5b90fbb
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

it IS a valid escape sequence. It doesn't have sense in that contex, you are right, but compiler doesn't care; It is a escape sequence, it mean ". return.  smiley-mr-green

btw as you can see from the second bug (and i think you haven't read it to say so) this overflow is breaking some "good" code, so it is a ide's bug.

btw if the IDE's start to complain about the code you write, and not the compiler, I think there is something weird going on

edit: here the "other bug", just to be sure we are talking about the same thing

my Arduino code:
sei nuovo? non sai da dove partire? leggi qui:

Pages: 1 [2]   Go Up
Jump to: