Define a primitive data type: Difference between revisions

Line 245:
There is a more serious downside. It is stated in [[#Ada|the Ada section]] that the Ada compiler is smart enough to know when to leave out bounds checks. In contrast, the ATS compiler will ''reject'' the program, unless it ''knows'' it can ‘leave out bounds checks’.
 
On the other hand, ''if you have no proof'' that a value is withwithin the bounds 1..10, you canmust bypassavoid attempting the assignment,; possiblybut byyou terminatingcan theinstead program.put Insomething other words, youlike ''can''if insert1 a<= boundsk check.then Itif isk often<= done.10 Butthen then compiler:= willk tellelse youabort() whenelse youabort()'''. needIn toother do itwords, andyou the''can'' boundsinsert checksa arebounds likelycheck. toIt beis sparseoften enoughdone, thatand youthere canis leavean them'''assertloc''' inmacro whenfor delivering thedoing programso.
 
=={{header|C sharp|C#}}==
1,448

edits