From: Steffen Mueller Date: Wed, 2 Sep 2009 16:32:53 +0000 (+0200) Subject: Deprecate assert.pl with a warning X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d94ee62ee1674ba7636ee5caeec4bf662f171012;p=p5sagit%2Fp5-mst-13.2.git Deprecate assert.pl with a warning --- diff --git a/lib/assert.pl b/lib/assert.pl index 4c9ebf2..768ae49 100644 --- a/lib/assert.pl +++ b/lib/assert.pl @@ -11,6 +11,9 @@ # be printed out by &panic, which is just the stack-backtrace # routine shamelessly borrowed from the perl debugger. +warn( "The 'assert.pl' legacy library is deprecated and will be" + . " removed in the next major release of perl." ); + sub assert { &panic("ASSERTION BOTCHED: $_[$[]",$@) unless eval $_[$[]; }