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

[KNOWN ISSUE] Incomplete implementation of some types of Named Value Types #81

Open
PTKu opened this issue Feb 18, 2023 · 0 comments
Open

Comments

@PTKu
Copy link
Member

PTKu commented Feb 18, 2023

Only Named Value Types issue
Compiler misses implementation for STRING, WSTRING, CHAR, WCHAR, Time and date types for named value types

Numerical types should work just fine.


Details

Following named 'Named Value Type Declaration'

TYPE
    ColorAsString : STRING (Red := '1', Green := '2', Blue := '3') := Red;
END_TYPE

will translate like this...

public enum ColorAsString : String
{
    Red = 49,
    Green = 50,
    Blue = 51
}

and

TYPE
    ColorAsString : STRING (Red := 'A1', Green := 'A2', Blue := 'A3') := Red;
END_TYPE
public enum ColorAsString : String
{
    Red = 0,
    Green = 0,
    Blue = 0
}
@PTKu PTKu added this to the v0.15 milestone Feb 28, 2023
@PTKu PTKu modified the milestones: v0.15, v0.16 Sep 23, 2023
@PTKu PTKu removed this from the v0.16 milestone Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant