Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 25
    • Merge requests 25
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2416
Closed
Open
Created Apr 30, 2024 by Jordy Aaldering@JordyAalderingDeveloper

Records do not work with modules

Given a module Vec3.sac:

module Vec3;

export all;

struct Vec3 { int x; int y; int z; };

The following will not compile:

use Vec3: all;

int main()
{
    v = Vec3{ 0, 0, 0 };
    return v.y;
}
No definition found for a function "Vec3::_struct_get_y" ...

But if we break Vec3.sac after -bpopt we see that in fact the function does exist.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking