We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to know if you plan on adding the possibility to create arrays as struct members.
AFAIK, it is not possible. Such code won't compile:
struct Point { int x, y; }; struct Octogon { Point points[8]; };
Though I can define arrays like this:
let points = new Point[8];
It doesn't seem to be possible to do in structs.
The text was updated successfully, but these errors were encountered:
Yes, I think we definitely need something like that. For now you can do something like:
struct Octogon { Point * points; }
and then
let Octogon o; o.points = new Point[8];
Sorry, something went wrong.
I'll try to take of this when I finish a couple other things I'm working on. I think I will need to hack the parser a bit more to allow this.
I would also like to support inline unions, such as:
struct S { union { int x; float y; }; }
This is implemented as of rev 72e1d84.
rinon
No branches or pull requests
I'd like to know if you plan on adding the possibility to create arrays as struct members.
AFAIK, it is not possible. Such code won't compile:
Though I can define arrays like this:
It doesn't seem to be possible to do in structs.
The text was updated successfully, but these errors were encountered: