mita icon indicating copy to clipboard operation
mita copied to clipboard

Using types from platform definition results in compile errors

Open wegendt-bosch opened this issue 6 years ago • 1 comments

Example:

Following can be used in application.mita:

var c : LedColor = LedColor.Yellow;

But this gives the following error in application.c:

grafik

wegendt-bosch avatar Apr 25 '18 14:04 wegendt-bosch

@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 to base where we would generate such code. This way we can also ship advanced functionality as Mita code itself.

wegendt-bosch avatar Apr 25 '18 14:04 wegendt-bosch