From cd221ed4afd8d5e0f24f3f9d6ed4216f3181b1ca Mon Sep 17 00:00:00 2001 From: Stan Cox Date: Thu, 28 Aug 2008 11:05:32 -0400 Subject: Document written but unread global variable automatic display. --- doc/langref.tex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc/langref.tex') diff --git a/doc/langref.tex b/doc/langref.tex index 413ece4d..5db82550 100644 --- a/doc/langref.tex +++ b/doc/langref.tex @@ -495,7 +495,9 @@ found. Because of possible concurrency limits, such as multiple probe handlers, each global variable used by a probe is automatically read- or write-locked while the handler is running. A global declaration may be written at the outermost level anywhere in a script file, not just within a block of code. -The following declaration marks \texttt{var1} and \texttt{var2} as global. +Global variables which are written but never read will be displayed +automatically at session shutdown. The following declaration marks +\texttt{var1} and \texttt{var2} as global. The translator will infer a value type for each, and if the variable is used as an array, its key types. -- cgit