View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005909 | 10000-003: Address Space | Api Change | public | 2020-08-21 12:09 | 2022-12-08 16:26 |
Reporter | Wolfgang Mahnke | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | acknowledged | Resolution | open | ||
Summary | 0005909: Limitation on subtyping for VariableTypes | ||||
Description | We fixed an issue of indicating if a Variable supports subtypes of its DataType recently (Mantis issue 0004422). We have not defined anything for VariableTypes. The NodeClass VariableType does not have the AccessLevelEx Attribute. The issue came up during an email discussion on Paul and me about subtyping VariableTypes. I do not have any concete use case where I want to restrict the DataType of a VariableType that it cannot be subtyped in its subtypes or instances. One way to solve this issue could also be to wait for the results of the "Semantic Validation" subgroup. | ||||
Tags | No tags attached. | ||||
Commit Version | |||||
Fix Due Date | |||||
related to | 0004423 | assigned | Jeff Harding | We need a indication of a sealed type |
related to | 0005918 | acknowledged | Constraints on Attribute values based on InstanceDeclarations Attributes |
|
Discuss with Wolfgang before assigning. |
|
Agreed to address this after the first 1.05 release of Part 3. |
|
This is a breaking change if implemented as specified. The current "broken" subtyping rules already allows any value to be written. Technically even any supertype, since all Variable node instances can always be viewed through the supertype "lens", which will see a BaseDataType ValueRank -2 definition. Though, in part that is a separate problem, which this change in theory could fix. However, in an object oriented programming language, you shall always accept a subtype, due to https://en.wikipedia.org/wiki/Liskov_substitution_principle. |
|
In response to comment from BjarneBostrom: |
|
Not enough of a pain point right now. May best be handled by semantic validation. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-08-21 12:09 | Wolfgang Mahnke | New Issue | |
2020-08-26 06:59 | Wolfgang Mahnke | Relationship added | related to 0005918 |
2020-08-26 11:16 | Jim Luth | Project | UA => 10000-003: Address Space |
2020-08-26 11:16 | Jim Luth | Category | Feature Request => Api Change |
2020-09-01 15:35 | Jim Luth | Note Added: 0012733 | |
2020-09-01 15:37 | Jim Luth | Relationship added | related to 0004423 |
2020-10-06 16:01 | Jim Luth | Status | new => acknowledged |
2020-10-06 16:01 | Jim Luth | Note Added: 0013021 | |
2021-04-19 05:55 | BjarneBostrom | Note Added: 0014228 | |
2021-10-01 13:29 | Wolfgang Mahnke | Note Added: 0015090 | |
2022-12-08 16:26 | Jim Luth | Note Added: 0018279 |