PlantUML 을사용해서 UML 그리기 - PlantUML 언어참조가이드(Version 1.2020.23)
replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have to use parenthesis. You have to use my_own_definelong() because my_own_definelong without Default argument value In both procedure and return functions, you can define default values for arguments. PlantUML 언어참조가이드 (1.2020.23) 275 / 306 20.9 Unquoted procedure or function [!unquoted] 20 PREPROCESSING Alice -> Bob : Just one more $inc(3) Alice -> Bob : Add two to three : $inc(3, 2) @enduml Only arguments at the end of the parameter list can have default values. @startuml !procedure defaulttest($x,0 码力 | 307 页 | 3.16 MB | 1 年前3PlantUML 1.2020.22 언어참조가이드
replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have to use parenthesis. You have to use my_own_definelong() because my_own_definelong without Default argument value In both procedure and return functions, you can define default values for arguments. PlantUML 언어참조가이드 (1.2020.22) 263 / 294 20.9 Unquoted procedure or function [!unquoted] 20 PREPROCESSING Alice -> Bob : Just one more $inc(3) Alice -> Bob : Add two to three : $inc(3, 2) @enduml Only arguments at the end of the parameter list can have default values. @startuml !procedure defaulttest($x,0 码力 | 295 页 | 3.08 MB | 1 年前3PlantUML 1.2021.1 언어참조가이드
replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have to use parenthesis. You have to use my_own_definelong() because my_own_definelong without Default argument value In both procedure and return functions, you can define default values for arguments. @startuml !function $inc($value, $step=1) !return $value + $step !endfunction Alice -> Bob : : Just one more $inc(3) Alice -> Bob : Add two to three : $inc(3, 2) @enduml Only arguments at the end of the parameter list can have default values. PlantUML 언어참조가이드 (1.2021.1) 344 / 385 24.9 Unquoted0 码力 | 386 页 | 4.12 MB | 1 年前3PlantUML 1.2021.2 언어참조가이드
replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have to use parenthesis. You have to use my_own_definelong() because my_own_definelong without Default argument value In both procedure and return functions, you can define default values for arguments. @startuml !function $inc($value, $step=1) !return $value + $step !endfunction Alice -> Bob : : Just one more $inc(3) Alice -> Bob : Add two to three : $inc(3, 2) @enduml Only arguments at the end of the parameter list can have default values. PlantUML 언어참조가이드 (1.2021.2) 349 / 390 25.9 Unquoted0 码力 | 391 页 | 4.17 MB | 1 年前3PlantUML 1.2021.3 언어참조가이드
replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have to use parenthesis. You have to use my_own_definelong() because my_own_definelong without Default argument value In both procedure and return functions, you can define default values for arguments. @startuml !function $inc($value, $step=1) !return $value + $step !endfunction Alice -> Bob : : Just one more $inc(3) Alice -> Bob : Add two to three : $inc(3, 2) @enduml Only arguments at the end of the parameter list can have default values. PlantUML 언어참조가이드 (1.2021.2) 365 / 407 25.9 Unquoted0 码力 | 408 页 | 4.32 MB | 1 年前3PlantUML 을사용해서 UML 그리기 - PlantUML 언어참조가이드(Version 1.2023.11)
Default argument value In both procedure and return functions, you can define default values for arguments. @startuml !function $inc($value, $step=1) !return $value + $step !endfunction Alice -> Bob : 언어참조가이드 (1.2023.11) 503 / 551 25.8 Unquoted procedure or function [!unquoted] 25 PREPROCESSING Only arguments at the end of the parameter list can have default values. @startuml !procedure defaulttest($x, the unquoted keyword to indicate that a function or a procedure does not require quotes for its arguments. @startuml !unquoted function id($text1, $text2="FOO") !return $text1 + $text2 alice -> bob :0 码力 | 552 页 | 7.88 MB | 1 年前3PlantUML 을사용해서 UML 그리기 - PlantUML 언어참조가이드(Version 1.2019.9)
replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have to use parenthesis. You have to use my_own_definelong() because my_own_definelong without 6 Default argument value In both return and void functions, you can define default values for arguments. @startuml !function $inc($value, $step=1) !return $value + $step !endfunction Alice -> Bob : : Just one more $inc(3) Alice -> Bob : Add two to three : $inc(3, 2) @enduml Only arguments at the end of the parameter list can have default values. @startuml !function defaulttest($x, $y="DefaultY"0 码力 | 172 页 | 1.97 MB | 1 年前3PlantUML 1.2019.6 언어참조가이드
replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have to use parenthesis. That is you have to use my_own_definelong() because my_own_definelong possible to use the unquoted keyword to indicate that a function does not require quotes for its arguments. @startuml !unquoted function id($text1, $text2="FOO") return $text1 + $text2 PlantUML 언어참조가이드 the length of a String %strlen("foo") 3 in the example %substr Extract a substring. Takes 2 or 3 arguments| %substr("abcdef", 3, 2) "de" in the example %strpos Search a substring in a string %strpos("abcdef"0 码力 | 172 页 | 1.95 MB | 1 年前3Comprehensive Rust(한국어) 202412
특징을 전부 지원합니다. 26 • Rust uses macros for situations where you want to have a variable number of arguments (no function overloading). • 똑똑한 매크로 (hygienic macro) 는 매크로가 사용되는 스코프에서 의도치않게 변수를 가로채지 않습니다. 사실 print_laps(); race.add_lap(71); race.print_laps(); race.finish(); // race.add_lap(42); } The self arguments specify the ”receiver” - the object the method acts on. There are several common receivers for a of p1 and p2. But just like types, Rust requires explicit annotations of lifetimes on function arguments and return values. 'a 를 left_most 에 적절하게추가합니다. fn left_most<'a>(p1: &'a Point, p2: &'a Point)0 码力 | 369 页 | 1.29 MB | 10 月前3Comprehensive Rust
특징을 전부 지원합니다. 26 • Rust uses macros for situations where you want to have a variable number of arguments (no function overloading). • 똑똑한 매크로 (hygienic macro) 는 매크로가 사용되는 스코프에서 의도치않게 변수를 가로채지 않습니다. 사실 print_laps(); race.add_lap(71); race.print_laps(); race.finish(); // race.add_lap(42); } The self arguments specify the ”receiver” - the object the method acts on. There are several common receivers for a of p1 and p2. But just like types, Rust requires explicit annotations of lifetimes on function arguments and return values. 'a 를 left_most 에 적절하게추가합니다. fn left_most<'a>(p1: &'a Point, p2: &'a Point)0 码力 | 368 页 | 1.29 MB | 1 年前3
共 15 条
- 1
- 2