-
Key: IDL4CPP11-18
-
Status: open Implementation work Blocked
-
Source: Remedy IT ( Johnny Willemsen)
-
Summary:
The spec is not clear when a type annotated with @default/@default_literal will really use these annotations
For example when I have in IDL the following:
@default(5) typedef long mylong;
When I now use in C++
mylong myvalue {};
What would be the value of myvalue, would it be 5 (the default I specified), or will it be 0?
Also when I have in IDL
enum Color
{ GREEN, @default_literal RED, BLUE };
And in C++ I have
Color mycolor {};
What is the value of mycolor, RED or GREEN?
RTI support says these annotations are only used when the IDL type is used within a complex type (struct/union/exception), but if that is the case the IDL spec should mention this.
Some other related questions/thinking points
- What when using array/sequences/map of these types?
- what about @range?
-
Reported: IDL4-CPP 1.0b2 — Fri, 4 Oct 2024 11:48 GMT
-
Updated: Fri, 11 Oct 2024 14:36 GMT
IDL4CPP11 — Using types which use @default/@default_literal
- Key: IDL4CPP11-18
- OMG Task Force: IDL4 to C++ Language Mapping (IDL4-CPP) 1.1 RTF