Make Pre- and Post- increment/decrement operators work on all types
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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;
- Lenguaje dominante
- C++
- Estrellas
- 104
- Forks
- 31
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de SQFvm/runtime
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
-
enhancement help wanted PreProcessor
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
Todos los issues de SQFvm/runtime
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
elf-alchemist/elfbsp#113 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
patrick-hudson/put.gd-desktop#979 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Dao-AILab/flash-attention#3097 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Niko1221/Strata#4779 · 2 comentarios ·
Los mantenedores suelen responder en 3 días