Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • E escet
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
    • Locked Files
  • Issues 92
    • Issues 92
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse ProjectsEclipse Projects
  • Eclipse ESCET (Supervisory Control Engineering Toolkit)
  • escet
  • Issues
  • #45
Closed
Open
Issue created Apr 10, 2021 by Dennis Hendriks@ddennisMaintainer

Deprecate old CIF enum declaration syntax

The CIF grammar contains:

     | ENUMKW Identifier EQTK CUROPENTK Identifiers CURCLOSETK SEMICOLTK
     | ENUMKW Identifier EQTK Identifiers SEMICOLTK

The former is the old syntax, the latter the new syntax. Previously enums had a set of literals and the order did not matter. Now the order does matter, and two enum types are only compatible if they have the same literals with the same names in the same order. The old {...} syntax variant makes it seem like a set, and thus that the order doesn't matter. We should deprecate the old syntax. We should generate a warning (e.g. 'Variant with curly brackets is deprecated.') if the old syntax is used. For backward compatibility, we won't remove it (for now).

Edited Apr 10, 2021 by Dennis Hendriks
Assignee
Assign to
Time tracking

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent