Skip to content

Commit b1303b2

Browse files
authored
Update ch05-00-function.md
1 parent 989c282 commit b1303b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ch05-00-function.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,6 @@ $ fpm run
8888
|`value`|参数按照****传递,内部修改后不影响其原本的值|
8989

9090
- 在我们使用函数的过程中,尽量要保证函数的参数是`intent(in)`或者`value`的,这类过程也被称为**纯函数**,这类函数不存在副作用,编译器可以提供更好的优化。
91+
- `intent(in)`也可以和`value`一起使用,此时值传递的虚参也**不可修改**
9192
- 如果不能保证纯函数,那可以使用我们下节提到的**子程序**
9293
- 在代码中应当**总是使用**`intent`属性,这样可以更好的让编译器检查我们的代码

0 commit comments

Comments
 (0)