mita
mita copied to clipboard
Using types from platform definition results in compile errors
Example:
Following can be used in application.mita:
var c : LedColor = LedColor.Yellow;
But this gives the following error in application.c:
@32leaves:
The main issue here is that at the moment we cannot ship types, functions, any Mita code as part of a library if that Mita code requires code generation. The generation framework simply doesn't have a place where to put such code. I propose to introduce another folder called
library
similar tobase
where we would generate such code. This way we can also ship advanced functionality as Mita code itself.