Assertions: Difference between revisions

PascalABC.NET
(Add Ecstasy example)
(PascalABC.NET)
 
Line 1,483:
=={{header|Pascal}}==
See [[Assertions#Delphi | Delphi]]
 
=={{header|PascalABC.NET}}==
Assert procedure works only in Debug mode. In Release all Assert calls are ignored. It is impossible to handle assertion exception.
 
<syntaxhighlight lang="delphi">
begin
var a := 3;
Assert(a = 3);
Assert(a = 4, 'Bad assert!');
end.
</syntaxhighlight>
 
 
 
=={{header|Perl}}==
46

edits