Article View: pl.comp.objects
Article #13559Re: Asercje i "Design by Contract"
From: Zbyszek Malec
Date: Sun, 20 Nov 2005 14:45
Date: Sun, 20 Nov 2005 14:45
12 lines
1046 bytes
1046 bytes
Aneta wrote (tak! stara dobra wrotka!):
> if ( thisClassAssertsOn && !(x >=0) )
> throw new AssertionFailed("X ujemne, rowne " + x);
A czy to się jakoś różni od javowego:
assert bool_expression, message_epression;
?
--
Zbigniew Malec Ustronie:104 gg:2756100
Technical Details
Message-ID:
<1x3wshnkic3uf$.eltnj1wzsv5n$.dlg@40tude.net>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<dlpqs2$joq$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: Zbyszek Malec <zbyszekto@tlen.pl> Newsgroups: pl.comp.objects Subject: Re: Asercje i "Design by Contract" Date: Sun, 20 Nov 2005 15:45:05 +0100 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 12 Message-ID: <1x3wshnkic3uf$.eltnj1wzsv5n$.dlg@40tude.net> References: <dlpqs2$joq$1@inews.gazeta.pl> NNTP-Posting-Host: ds11.internetdsl.tpnet.pl Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1132497908 20814 80.53.254.11 (20 Nov 2005 14:45:08 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Sun, 20 Nov 2005 14:45:08 +0000 (UTC) X-User: zbyszanna User-Agent: 40tude_Dialog/2.0.15.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit