The Rosetta Stone of the Koinos ecosystem. Allows for the interpretation of Koinos data structures in a multitude of languages. Useful in the development of microservices, clients, and smart contracts.
Currently integer fields aren't initialized in generated code. There are two ways this can be achieved:
(1) Instead of simple typedef of built-in integer types, integer types in basetypes.hpp should instead be custom types with proper default initializers (and presumably all arithmetic operators).
(2) Add code generator functionality to the C++ backend to default initialize fields of integer types, or typedefs of integer types.
Approach (2) will probably require extending the basetype declaration syntax to give us a way to tell the codegen "this type has this default initializer".
Currently integer fields aren't initialized in generated code. There are two ways this can be achieved:
typedef
of built-in integer types, integer types inbasetypes.hpp
should instead be custom types with proper default initializers (and presumably all arithmetic operators).Approach (2) will probably require extending the basetype declaration syntax to give us a way to tell the codegen "this type has this default initializer".