Skip to content
GitLab
Projects Groups Topics 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 revisions
    • Locked files
  • Issues 99
    • Issues 99
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse ProjectsEclipse Projects
  • Eclipse ESCET (Supervisory Control Engineering Toolkit)
  • escet
  • Issues
  • #45

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