|
|
|
|
|
by haetze
2047 days ago
|
|
Doesn't Ada have a sort of arbitrary computation on assignment? I think I remember that there are rules when predicates on types are checked. (Depending on the Assertion_Policy of course) I'm not sure how that works on assignment though. |
|
I don't think Ada supports arbitrary user-specified constraints, but I'm no expert.
[0] https://gcc.gnu.org/onlinedocs/gcc-10.2.0/gnat_ugn/Run-Time-...
[1] https://docs.adacore.com/spark2014-docs/html/ug/en/usage_sce...