You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.
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".
The text was updated successfully, but these errors were encountered:
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".
The text was updated successfully, but these errors were encountered: