c-mera icon indicating copy to clipboard operation
c-mera copied to clipboard

C'tor for structs

Open kiselgra opened this issue 8 years ago • 1 comments

Would be cool to extend cm-c:struct in cm-cxx to also support constructors.

We can, of course, just use class for the moment :)

kiselgra avatar Jan 09 '17 13:01 kiselgra

When extending this, shoud we add base-classes to structs? This would make code using structs incompatible between cm-c and cm-c++.

I think we have to define a c++ version of struct anyhow (to supply the c'tor macrolet), so we could also check for something like this:

(struct foo :basees ((public bar) (private baz))
   body...)

kiselgra avatar Oct 30 '17 19:10 kiselgra