Skip to content

Commit 6d782d3

Browse files
tsuyoshichoh-east
andcommitted
usr_52.jax: fix lost translate
Co-authored-by: h_east <[email protected]>
1 parent 9187a75 commit 6d782d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/usr_52.jax

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ Vim9 script の変数は一度だけ `:let` もしくは `:const` コマンド
135135
ていると警告します: >
136136
E1051: Wrong argument type for +
137137
138+
補足: ここでは旧来のスクリプトでの話です。Vim9 script を使う場合はスクリプトの
139+
最後に `:defcompile` を置くことで、定義されるすべての関数の定義によるエラーが
140+
チェックされます。
141+
138142
Vim9 script は厳密で、"+" 演算子は数値か浮動小数点数でしか使えません。文字の結
139143
合であれば ".." を使わなくてはなりません。これが間違いを防ぎ、上にあるような驚
140144
きの結果をもたらす自動型変換を回避します。そして関数の最初の行をこう変化させれ

0 commit comments

Comments
 (0)