From: Alan T. DeKok Date: Sun, 1 Oct 2023 13:37:13 +0000 (-0400) Subject: more notes on local variables X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd12f4ab3948aebfd96c6946ee7ef6de61520f29;p=thirdparty%2Ffreeradius-server.git more notes on local variables --- diff --git a/doc/antora/modules/reference/pages/unlang/local.adoc b/doc/antora/modules/reference/pages/unlang/local.adoc index 05d8deb45aa..871fbd522bd 100644 --- a/doc/antora/modules/reference/pages/unlang/local.adoc +++ b/doc/antora/modules/reference/pages/unlang/local.adoc @@ -28,9 +28,9 @@ Multiple local variables may be defined. All definitions must be at the top of Local variables cannot be deleted. Multiple local variables of the same name cannot be used. The local variables exist in their own list, and cannot be added to the normal lists `request`, `reply`, `control`, etc. -Local variables are _not_ automatically created. +Local variables are _not_ automatically created. There is no way to automatically determine what the "right" value is for a local variable. Instead, they are declared at the top of a block, and are created only when they are first assigned a value. -When the current scope exits, the local variable is deleted and is no longer accessible. +Local variables _cannot_ be deleted. When the current scope exits, the local variable is deleted and is no longer accessible. .Example [source,unlang]