You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The #250 PR introduces a lot of duplicate code for defining reversible primitives.
It is not trivial to refactor but should be done either way.
Relevant discussion:
This is what I have been wanting to do, but because the primitives array is a global array with a fixed size defined using a #define in the cpp file this can't be very easily done. You can't really use the #define for the size from another file using extern. You also can't make it an integer because not all c++ compilers support using variables as array size. The solution would probably be to just use an std::vector.
tolauwae
changed the title
The #250 PR introducing reversible primitives includes a lot of duplicate code for defining reversible primitives.
Refactoring is not trivial but should be done either way.
**Relevant discussion:**
This is what I have been wanting to do, but because the primitives array is a global array with a fixed size defined using a #define in the cpp file this can't be very easily done. You can't really use the #define for the size from another file using extern. You also can't make it an integer because not all c++ compilers support using variables as array size. The solution would probably be to just use an std::vector.
The #250 PR introduces a lot of duplicate code for defining reversible primitives
Refactoring is not trivial but should be done either way.
**Relevant discussion:**
This is what I have been wanting to do, but because the primitives array is a global array with a fixed size defined using a #define in the cpp file this can't be very easily done. You can't really use the #define for the size from another file using extern. You also can't make it an integer because not all c++ compilers support using variables as array size. The solution would probably be to just use an std::vector.
Aug 31, 2024
tolauwae
changed the title
The #250 PR introduces a lot of duplicate code for defining reversible primitives
Refactoring is not trivial but should be done either way.
**Relevant discussion:**
This is what I have been wanting to do, but because the primitives array is a global array with a fixed size defined using a #define in the cpp file this can't be very easily done. You can't really use the #define for the size from another file using extern. You also can't make it an integer because not all c++ compilers support using variables as array size. The solution would probably be to just use an std::vector.
The #250 PR introduces a lot of duplicate code for defining reversible primitives
Aug 31, 2024
tolauwae
changed the title
The #250 PR introduces a lot of duplicate code for defining reversible primitives
PR #250 introduces a lot of duplicate code for defining reversible primitives
Aug 31, 2024
The #250 PR introduces a lot of duplicate code for defining reversible primitives.
It is not trivial to refactor but should be done either way.
Relevant discussion:
The text was updated successfully, but these errors were encountered: