-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add runtime.Enum #637
Add runtime.Enum #637
Conversation
@WypustekMichal this is for int2enum please use it to implement your function |
0dd8526
to
4357ae7
Compare
controversial chantes:
|
please re-check with new commit
4357ae7
to
e08b3f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's great to see that with only moderate change you model something challenging as TTCN-3 enumeration semantics
Some details should be worked out. For example: Can we already implement a mechanism to assign the correct enum-type?
ntt -i
ntt dev (none, unknown)
>> type enumerated U { E }
>> type enumerated V { E }
>> var U e := E
>> e
V::E
Also, I like the syntax ::
, but it's non-standard. I think in TTCN-3 we should write V.E
instead (we need to check this though).
done |
626625b
to
2a2d56e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type is not right, do you maybe know why?
ntt -i
ntt dev (none, unknown)
>> type enumerated U { E }
>> type enumerated V { E }
>> var U e := E
>> e
V.E
``
2a2d56e
to
7fe8941
Compare
yes
|
this is an implementation of runtime.Enum required for C.1.4 Integer to enumerated int2enum