Include "new" and "delete" operators as a core part of the language

Arduino uses c++ so why not include "new" and "delete" operators to make using the language easy? They should be used sparingly though.

arjo129: Arduino uses c++ so why not include "new" and "delete" operators to make using the language easy? They should be used sparingly though.

I believe those functions are avalible via the AVR library code which is included with the IDE distribution. It's just a matter of including the proper library file names for those functions in your sketch. Your correct about using it sparingly as SRAM is such a limited resource for AVR mega chips and the compiler can't calculate or warn about the run time consumption of SRAM.

Lefty

avr-libc user manual, section 11.7:

The operators new and delete are not implemented, attempting to use them will cause the linker to complain about undefined external references. (This could perhaps be fixed.)

They are included in Arduino 1.0

new.h/.cpp