Skip to main content
7 events
when toggle format what by license comment
Dec 24, 2016 at 12:45 comment added Majenko Oh and class methods aren't external, they are part of a class. An "extern" function is a raw function, not a class member. they are very very different beasts.
Dec 24, 2016 at 12:44 comment added Majenko It is not essential, no. It used to be required, but now it is entirely optional. I like to keep it in there as a reminder that "this function is implemented elsewhere". It is only required now for variables - functions have it implicitly automatically in modern compilers.
Dec 24, 2016 at 12:44 vote accept tomph
Dec 24, 2016 at 12:43 comment added tomph What about the externkeyword? Is it essential? I never used it inside an header file while declaring methods of a class
Dec 24, 2016 at 12:41 comment added Majenko No, the keyword class denotes a class. .h + .cpp is normal programming practice and procedure and has nothing at all to do with classes. You can create classes inside a .ino file if you want.
Dec 24, 2016 at 12:40 comment added tomph Thanks a lot, I thought that the format .h + .cpp was exclusively for classes.
Dec 24, 2016 at 11:54 history answered Majenko CC BY-SA 3.0