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

[improvement] Support Injected Alias Types for Packages #32

Open
montymxb opened this issue Jan 28, 2025 · 0 comments
Open

[improvement] Support Injected Alias Types for Packages #32

montymxb opened this issue Jan 28, 2025 · 0 comments
Labels
priority-medium Should be resolved in 1-3 sprints

Comments

@montymxb
Copy link
Contributor

According to the 6.1 spec, these pair of statements are added to the package-level of every compilation:

Define alias __SIGNED_INT signed fixed bin(p1,0);

Define alias __UNSIGNED_INT unsigned fixed bin(p2,0);

A standalone example shows a simple usage here:

 pack: package;
 p: proc options(main);
    dcl si type __signed_int;
    dcl ui type __unsigned_int;
 end p;
 end pack;

Although not part of a physical library, we should be able to link these to a built-in (or equivalent) with the expected type alias definitions.

@montymxb montymxb changed the title Support Injected Alias Types for Packages [improvement] Support Injected Alias Types for Packages Jan 28, 2025
@montymxb montymxb added the priority-medium Should be resolved in 1-3 sprints label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-medium Should be resolved in 1-3 sprints
Projects
None yet
Development

No branches or pull requests

1 participant