]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
more notes on local variables
authorAlan T. DeKok <aland@freeradius.org>
Sun, 1 Oct 2023 13:37:13 +0000 (09:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 1 Oct 2023 13:37:13 +0000 (09:37 -0400)
doc/antora/modules/reference/pages/unlang/local.adoc

index 05d8deb45aadb0940a09a34232fe4b0f1918b016..871fbd522bd263e10421085f53e3b04be0d69104 100644 (file)
@@ -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]