PlantUML 1.2019.6 Справочное руководство по языкуPlantUML (1.2019.6) 147 / 172 19.5 Return function 19 PREPROCESSING Variables defined in functions are local. It means that the variable is destroyed when the function is exited. 19.5 Return function A return variable are local by default (they are destroyed when the function is exited). However, you can access to global variables from function. However, you can use the local keyword to create a local variable variable if ever a global variable exists with the same name. @startuml !function $dummy() !local $ijk = "local" Alice -> Bob : $ijk !endfunction !global $ijk = "foo" Alice -> Bob : $ijk $dummy() Alice -> Bob0 码力 | 173 页 | 1.95 MB | 1 年前3
PlantUML 1.2019.9 Справочное руководство по языкуPlantUML (1.2019.9) 147 / 172 19.5 Return function 19 PREPROCESSING Variables defined in functions are local. It means that the variable is destroyed when the function ends. 19.5 Return function A return function variable are local by default (they are destroyed when the function is exited). However, you can access to global variables from function. However, you can use the local keyword to create a local variable variable if ever a global variable exists with the same name. @startuml !function $dummy() !local $ijk = "local" Alice -> Bob : $ijk !endfunction !global $ijk = "foo" Alice -> Bob : $ijk $dummy() Alice -> Bob0 码力 | 173 页 | 1.97 MB | 1 年前3
PlantUML 1.2023.11 Справочное руководство по языку@200 WB is Proc. @300 WB is Waiting WB2 is Waiting @500 WU is ok @700 WB is Idle @enduml 10.22.3 Local mode with only compact on element @startuml compact robust "Web Browser" as WB compact concise "Web PlantUML server has the ”Noto Emoji” font that has most emoji. If you want to render diagrams on your local system, you should check which fonts you have. • Unfortunately ”Noto Emoji” lacks normal chars, so $init_class("foo1") $init_class("foo2") $msg("foo1", "foo2") @enduml Variables defined in procedures are local. It means that the variable is destroyed when the procedure ends. 25.6 Return function [!function0 码力 | 554 页 | 7.96 MB | 1 年前3
PlantUML 1.2020.23 Справочное руководство по языку$init_class("foo1") $init_class("foo2") $msg("foo1", "foo2") @enduml Variables defined in procedures are local. It means that the variable is destroyed when the procedure ends. 20.7 Return function [!function variable are local by default (they are destroyed when the function is exited). However, you can access to global variables from function. However, you can use the local keyword to create a local variable variable if ever a global variable exists with the same name. @startuml !function $dummy() !local $ijk = "local" !return "Alice -> Bob : " + $ijk !endfunction !global $ijk = "foo" Alice -> Bob : $ijk $dummy()0 码力 | 306 页 | 3.12 MB | 1 年前3
PlantUML 1.2020.22 Справочное руководство по языку$init_class("foo1") $init_class("foo2") $msg("foo1", "foo2") @enduml Variables defined in procedures are local. It means that the variable is destroyed when the procedure ends. 20.7 Return function [!function variable are local by default (they are destroyed when the function is exited). However, you can access to global variables from function. However, you can use the local keyword to create a local variable variable if ever a global variable exists with the same name. @startuml !function $dummy() !local $ijk = "local" !return "Alice -> Bob : " + $ijk !endfunction !global $ijk = "foo" Alice -> Bob : $ijk $dummy()0 码力 | 294 页 | 3.03 MB | 1 年前3
PlantUML 1.2021.2 Справочное руководство по языку$init_class("foo1") $init_class("foo2") $msg("foo1", "foo2") @enduml Variables defined in procedures are local. It means that the variable is destroyed when the procedure ends. 25.7 Return function [!function variable are local by default (they are destroyed when the function is exited). However, you can access to global variables from function. However, you can use the local keyword to create a local variable variable if ever a global variable exists with the same name. @startuml !function $dummy() !local $ijk = "local" !return "Alice -> Bob : " + $ijk !endfunction !global $ijk = "foo" Alice -> Bob : $ijk $dummy()0 码力 | 388 页 | 4.18 MB | 1 年前3
PlantUML 1.2021.1 Справочное руководство по языку$init_class("foo1") $init_class("foo2") $msg("foo1", "foo2") @enduml Variables defined in procedures are local. It means that the variable is destroyed when the procedure ends. 24.7 Return function [!function variable are local by default (they are destroyed when the function is exited). However, you can access to global variables from function. However, you can use the local keyword to create a local variable variable if ever a global variable exists with the same name. @startuml !function $dummy() !local $ijk = "local" !return "Alice -> Bob : " + $ijk !endfunction !global $ijk = "foo" Alice -> Bob : $ijk $dummy()0 码力 | 383 页 | 4.13 MB | 1 年前3
PlantUML 1.2021.3 Справочное руководство по языку$init_class("foo1") $init_class("foo2") $msg("foo1", "foo2") @enduml Variables defined in procedures are local. It means that the variable is destroyed when the procedure ends. 25.7 Return function [!function variable are local by default (they are destroyed when the function is exited). However, you can access to global variables from function. However, you can use the local keyword to create a local variable variable if ever a global variable exists with the same name. @startuml !function $dummy() !local $ijk = "local" !return "Alice -> Bob : " + $ijk !endfunction !global $ijk = "foo" Alice -> Bob : $ijk $dummy()0 码力 | 406 页 | 4.33 MB | 1 年前3
PlantUML 1.2019.3 Справочное руководство по языкуAssuming that myFolder/myFile.iuml is located somewhere ' either inside "customLibrary.zip" or on the local filesystem ... 17.11 Search path You can specify the java property plantuml.include.path in the0 码力 | 159 页 | 1.76 MB | 1 年前3
PlantUML 1.2019.2 Справочное руководство по языкуAssuming that myFolder/myFile.iuml is located somewhere ' either inside "customLibrary.zip" or on the local filesystem ... 17.11 Search path You can specify the java property plantuml.include.path in the0 码力 | 159 页 | 1.76 MB | 1 年前3
共 13 条
- 1
- 2













