Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support structs #4

Closed
18 tasks done
andrewrk opened this issue Dec 11, 2015 · 0 comments
Closed
18 tasks done

support structs #4

andrewrk opened this issue Dec 11, 2015 · 0 comments
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase.

Comments

@andrewrk
Copy link
Member

struct Aoeu {
    field: i32,
    field2: bool,
}
  • struct on the stack, read / write fields
  • accept a struct pointer as a parameter. read / write fields
  • debug information for structs
  • struct which has a member which is a pointer to same struct
  • struct which has a member which is another struct declared later
  • circular reference struct is an error
  • invalid field access error test
  • assign to invalid field error test
  • assign one byvalue struct to another
  • struct initializer syntax
  • assign field to constant struct error
  • redefinition of struct error
  • pub vs private vs export structs
  • error for modifying a byval parameter
  • error for byval struct parameter in exported function (since we don't yet support it)
  • error for missing field in struct value expression
  • error for incorrect field in struct value expression
  • error for taking mutable address of const struct field
@andrewrk andrewrk added the enhancement Solving this issue will likely involve adding new logic or components to the codebase. label Dec 11, 2015
@andrewrk andrewrk closed this as completed Jan 6, 2016
gonzus added a commit to gonzus/zig that referenced this issue May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Solving this issue will likely involve adding new logic or components to the codebase.
Projects
None yet
Development

No branches or pull requests

1 participant