You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
949ff29
to make sure they are not (significantly) violating the spec.
They are somewhat contradicting the TransferElement spec C.4 (in particular 4.3) which still mentions the bad_numeric_cast exceptions. This part of the spec (and all other references to this exception) shall be reviewed as well. It should be decided which of the following solutions shall be implemented:
overflows always result in the closest possible value
asymmetric behaviour: in writes, overflows always result in the closest value, while for reading overflows are prevented in the constructor phase (logic_error if type is too small).
The second solution raises the question how to handle (as an extreme example) bidirectional variables between ApplicationModules involving a conversion (which is currently not implemented, but maybe it should be in future?).
The text was updated successfully, but these errors were encountered:
A discussion with @mhier lead to the conclusion that symmetric behaviour is the better solution.
Overflows result in the closest possible value AND the data validity flag is set to faulty.
This holds for both directions. An implementation (like PCIe) might ignore it / not transport it when writing.
Overflows in a single element of an array result in the maximum/minimum representable value only in that element. The data validity flag, which is for the whole process variable, is set to faulty.
Review the following commits:
to make sure they are not (significantly) violating the spec.
They are somewhat contradicting the TransferElement spec C.4 (in particular 4.3) which still mentions the bad_numeric_cast exceptions. This part of the spec (and all other references to this exception) shall be reviewed as well. It should be decided which of the following solutions shall be implemented:
The second solution raises the question how to handle (as an extreme example) bidirectional variables between ApplicationModules involving a conversion (which is currently not implemented, but maybe it should be in future?).
The text was updated successfully, but these errors were encountered: