Author Topic: Wiring 1.0 / Arduino 1.0 Compliance?  (Read 1889 times)

0 Members and 1 Guest are viewing this topic.

rei_vilo

Wiring 1.0 / Arduino 1.0 Compliance?
« on: March 24, 2012, 10:24:13 AM »
Is Wiring 1.0 build 100 Arduino 1.0 compliant?

Code: (Wiring print.h) [Select]
class Print
{
  public:
    // pure virtual - must be implemented by derived class
    virtual void write(uint8_t) = 0;

    // virtual - can be redefined (polymorphic class)
    virtual void write(const char *str);
    virtual void write(const uint8_t *buffer, size_t size);


write is void with Wiring 1.0 while returning size_t with Arduino 1.0

Code: (Arduino 1.0 print.h) [Select]
class Print
{
  private:
    int write_error;
    size_t printNumber(unsigned long, uint8_t);
    size_t printFloat(double, uint8_t);
 

cver65

Re: Wiring 1.0 / Arduino 1.0 Compliance?
« Reply #1 on: April 12, 2012, 04:44:00 AM »
Don't think so.

Arduino 1.0 decided to break compatibility with Wiring in many places, (without any good reason IMHO), and relationship between Wiring and Arduino "core team" can't be qualified of friendly.

(Why) Should it ?