Make Pre- and Post- increment/decrement operators work on all types
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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;
- Ngôn ngữ chính
- C++
- Star
- 104
- Fork
- 31
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của SQFvm/runtime
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
enhancement help wanted PreProcessor
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
Tất cả issue của SQFvm/runtime
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-score/lifecycle#929 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
colbymchenry/codegraph#3223 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
firefox-devtools/profiler#6436 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The `ufw` decoder requires the kernel's monotonic timestamp, so UFW lines read from journald decode without any fieldCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày