ericlass/erc

Structures

Opened this issue · 0 comments

It is required to have structures to be able to group data and do more interop with APIs that use structs. Things required to be done:

  • Definition of structs with members (fields, methods)
  • Access to members with . operator
    • Read field values
    • Assign field values
    • Call methods
  • Access modifiers for members, for now public (pub) and private (private is default and not written)
  • Memory layout (packed, aligned, padding)
  • Usage of this is required to access fields in methods

Maybe need to split the issue into multiple.