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
camlidl and union-decl #2814
Comments
Comment author: administrator
As shown in the manual, each "case" label must syntactically be an
Otherwise, the IDL->Caml mapping cannot guess the Caml constructor
|
Comment author: administrator Behavior conforms to spec. |
Comment author: administrator Xavier Leroy Xavier.Leroy@inria.fr writes:
You are right, sorry. I've tried to find out why the following construct typedef union _userCLIPFORMAT switch(long fContext) u and have simplified it in the wrong place. The real problem was that "u" Hope to hear from you soon, |
Original bug ID: 410
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: -for CamlIDL use https://github.com/xavierleroy/camlidl/issues
Bug description
Full_Name: Dmitry Bely
Version: 3.01, camlidl cvs 27.06.01
OS: Windows NT 4.0
Submission from: d009.p3.col.ru (195.210.132.9)
The second form of union-decl (according to p. 2.5 of camlidl manual) does not
work:
[union.idl]
typedef union switch(int ctx)
{
case 1: int intVal;
case 2: char charVal;
} UNION;
[end of union.idl]
D:\Work\camlidl-test>camlidl union.idl
union.idl
File union.idl, line 3, character 6: syntax error
The text was updated successfully, but these errors were encountered: