Assertions: Difference between revisions

Content added Content deleted
(Add Ecstasy example)
(PascalABC.NET)
 
Line 1,483: Line 1,483:
=={{header|Pascal}}==
=={{header|Pascal}}==
See [[Assertions#Delphi | Delphi]]
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}}==
=={{header|Perl}}==