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

"create_struct" differs from IDL when the tag name is not a tag name ! #1808

Open
alaingdl opened this issue Apr 15, 2024 · 1 comment
Open
Labels
wontfix This will not be worked on

Comments

@alaingdl
Copy link
Contributor

(not the same case than #1627 )

IDL> t=create_struct({test, value:0.0},10,2)
% Unable to convert variable tagname to type struct.
% Execution halted at: $MAIN$          

but accepted in GDL

GDL> t=create_struct({test, value:0.0},10,2)

(and a series of other bad tests ...)

@GillesDuvert GillesDuvert added the bug Something isn't working label Apr 27, 2024
@GillesDuvert
Copy link
Contributor

GillesDuvert commented May 6, 2024

The structure is not the first problem:

IDL> t=create_struct(10,2)
% Unable to convert variable tagname to type struct.

GDL correctly takes the 1st argument as a structure (permitted) and adds to it the second tag, 10 and value, 2.
The "only" problem is that

IDL> t=create_struct('10',2)  
% CREATE_STRUCT: Illegal tag name: 10.

when GDL creates an acceptable tag:

GDL> t
{
    "______10": 2
}

So this is NOT really an issue, and cannot easily be patched without reverting #1627 (regression)

@GillesDuvert GillesDuvert added wontfix This will not be worked on and removed bug Something isn't working labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants