Z-Wave-Me / Z-Uno-Core

Core files for Z-Uno support in Arduino IDE 1.6.5
21 stars 12 forks source link

Z-Uno C++ compiler restrictions / enhancement policy #116

Open charly61ch opened 6 years ago

charly61ch commented 6 years ago

Dears,

Restrictions List Is there an (exhaustive) list available, describing the restrictions applicable to the C++ compiler ? I think in particular of :

Enhancement policy Is the goal of the compiler to support more and more c++ compatibilities / features ? If yes, is it a good practice to submit issues each time we encounter a restriction ? Is there an approximative "red line" we could "feel", below which we can consider a compiler problem as an issue, and above which, an assumed restriction ?

Thank's in advance for answers/ideas. Regards, Charly C.

p0lyg0n1 commented 6 years ago

Hi, I feel that it's time to write this list. :) You are right uCxx (micro C++) has a lot of restrictions. It's something like first version of C++ (cfront compiler/translator) for x86. It's just an extended C with some of C++ features to simplify porting of Arduino libraries to Z-Uno platform. We don't plan to support features like templates and complex casting. They are too fat for intel 8051. However the main polymorphic methods (like virtual functions/constructors) have to work.