aboutsummaryrefslogtreecommitdiff
path: root/libraries/Firmata/examples/I2CFirmata
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2011-03-26 18:52:54 -0400
committerDavid A. Mellis <d.mellis@arduino.cc>2011-03-26 18:52:54 -0400
commit99e642a26dc2a406cdfa2d43665f45749b63d5c8 (patch)
treef18963c97cbb2693df9330f4de66e180e3e618fb /libraries/Firmata/examples/I2CFirmata
parentcedea72273a1d0b70c83f46808342b23ddaddca7 (diff)
String: removing implicit numeric conversions and new approach to "if (s)".
This makes explicit the String constructors that take numeric types and chars and removes the versions of concat() and operator=() and operator+() that accept numberic types. It also replaces the operator bool() with a operator that converts to a function pointer. This allows for uses like "if (s)" but not "s + 123". See: http://www.artima.com/cppsource/safebool.html. This allowed removing the disambiguating operator+() functions and relying solely on StringSumHelper and anonymous temporaries once again. Also, now treating unsigned char's like int when constructing Strings from them, i.e. String(byte(65)) is now "65" not "A". This is consistent with the new behavior of Serial.print(byte).
Diffstat (limited to 'libraries/Firmata/examples/I2CFirmata')
0 files changed, 0 insertions, 0 deletions