Bug 514317 - Support of ranges of integer literal values in enumerated
Summary: Support of ranges of integer literal values in enumerated
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: titan.core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-28 08:16 EDT by Lenard Nagy CLA
Modified: 2021-04-23 09:53 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lenard Nagy CLA 2017-03-28 08:16:36 EDT
According to the latest TTCN-3 standard "Each enumerated value may optionally have a user-assigned integer value or non-empty list of integer literal values or 
ranges of integer literal values..."

Where "ranges of integer literal values" means the declaration of "Other" field:
type enumerated MyThirdEnumType { 
        Blue(0),    
        Yellow(1),    
        Green(3),    
        Other(4..255)
    }

See http://www.etsi.org/deliver/etsi_es/201800_201899/20187301/04.08.01_60/es_20187301v040801p.pdf, Clause 6.2.4, Example 3.

This kind of notation would be useful to simplify ITS security data type definitions.
Comment 1 Kristof Szabados CLA 2020-06-07 03:53:59 EDT
This is actually a new feature request.
Comment 2 Denis Roy CLA 2021-04-23 09:53:32 EDT
This bug was migrated to GitLab: https://gitlab.eclipse.org/eclipse/titan/titan.core/-/issues