Wiring Forum

All Forums => Core/Cross-platform Library Questions => Topic started by: rei_vilo on March 24, 2012, 10:24:13 AM

Title: Wiring 1.0 / Arduino 1.0 Compliance?
Post by: rei_vilo 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);
 
Title: Re: Wiring 1.0 / Arduino 1.0 Compliance?
Post by: cver65 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 ?