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
set
The following generates a good error message, but the lack of set types is a severe limiitation.
INTEGER_KINDS : set[i32] = {1, 2, 4, 8} LOGICAL_KINDS : set[i32] = {1, 2, 4} REAL_KINDS : set[i32] = {4, 8} COMPLEX_KINDS : set[i32] = {4, 8} CHARACTER_KINDS : set[i32] = {1}
/Users/brian/CLionProjects/lpython/src/bin/python /Users/brian/CLionProjects/lpython/lasr/LP-pycharm/lasr_parser.py code generation error: Variable type not supported 6 --> /Users/brian/CLionProjects/lpython/lasr/LP-pycharm/lasr_parser.py:58:1 | 58 | CHARACTER_KINDS : set[i32] = {1} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The workaround is undesirable (that's what "severe" means):
INTEGER_KINDS : dict[i32, i32] = {1: 1, 2: 2, 4: 4, 8: 8} LOGICAL_KINDS : dict[i32, i32] = {1: 1, 2: 2, 4: 4} REAL_KINDS : dict[i32, i32] = {4: 4, 8: 8} COMPLEX_KINDS : dict[i32, i32] = {4: 4, 8: 8} CHARACTER_KINDS : dict[i32, i32] = {1: 1}
The workaround hints at a possible easy fix.
The text was updated successfully, but these errors were encountered:
kabra1110
Successfully merging a pull request may close this issue.
The following generates a good error message, but the lack of
set
types is a severe limiitation.The workaround is undesirable (that's what "severe" means):
The workaround hints at a possible easy fix.
The text was updated successfully, but these errors were encountered: