Yep, I know about pascal (my 2d language after foxpro) but not the ADA 2012.
The Dynamic_Predicate is on runtime or compile time? If assign a:Int = Even, I need to be explicit and do a convert (I imagine is yes, that is the pascal style but not have experience with ADA)
Re:Dependently Typed Programming
by lobster_johnson on Friday July 04, 2014 @09:03PM
(#7990721)
I believe it occurs only at compile time if it is possible for the compiler to evaluate the check; otherwise it's done at runtime.
In Ada:
Ada 2012 adds the support for specifying Eiffel-style contracts, but on types: You can't assign an odd number to a variable of type Even.