added notice of deprecation to NEWS

This commit is contained in:
Vern Paxson 2022-01-03 11:24:18 -08:00
parent 38c6c8f073
commit aee333cc62

21
NEWS
View file

@ -159,6 +159,27 @@ Deprecated Functionality
replaced by ``analyzer_confirmation`` and ``analyzer_violation`` which can replaced by ``analyzer_confirmation`` and ``analyzer_violation`` which can
also now be implemented in packet analyzers. also now be implemented in packet analyzers.
- Declaring a local variable in an inner scope and then accessing it in an
outer scope is now deprecated. For example,
if ( foo() )
{
local a = 5;
...
}
print a;
is deprecated. You can address the issue by hoisting the declaration
to the outer scope, such as:
local a: count;
if ( foo() )
{
a = 5;
...
}
print a;
Zeek 4.1.0 Zeek 4.1.0
========== ==========