Make Pre- and Post- increment/decrement operators work on all types
まだ誰も着手していません。
評価
調査の方向性
Start by reproducing the nested-array example and compare pre-increment with post-increment behavior in the SQF compiler or runtime. Trace how increment and decrement expressions are translated for array element access, then define and test behavior for all supported operand types, including the expected generated SQF.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Lets say i've got this little array here:
example = [ [0,1], [0, 1, 2] ];
Now i want to increase the second value in the first array by one by doing
example[0][1] = ++example[0][1];
However the output sqf code is:
example = [[0, 1], [0, 1, 2]];
example = (example + 1);
example select 0 set [1, example select 0 select 1];
I tries to first increment example and thereafter assign the value to array.
Doing a post increment won't work at all in this context.
I guess this is a really specific usecase and i won't mind not fix it.
In the end it would generate the same code as i would if i had written:
let temp = example[0][1];
temp++;
example[0][1] = temp;
- 主要言語
- C++
- スター
- 104
- フォーク
- 31
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SQFvm/runtime のほかの issue
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
enhancement help wanted PreProcessor
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
似ている issue
-
bug libcudf
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
level/task module/cloud monitoring type/maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
LadybirdBrowser/ladybird#13809 ·
メンテナーはふだん 1 日以内に返信
-
bug module:nodes tests
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rocketride-org/rocketride-server#3020 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 9 日以内に返信