Re: [R-pkg-devel] use of assert in C++

2024-12-19 Thread Bielow, Chris
|| I think it would be really misleading to have code that routinely || ignored the assert() calls. In a year would you remember that those || asserts were effectively just comments, not being acted on without || some trickery to enable them? | |Or have a user with different compiler flags witho

Re: [R-pkg-devel] use of assert in C++

2024-12-19 Thread Bielow, Chris
|| hoping this is the right place for this: || I stumbled upon documentation regarding the use of `assert` in C++ || code, in particular, || https://cran.r-project.org/web/packages/policies.html states that || || ``` || Thus C/C++ calls to assert/abort/exit/std::terminate, Fortran calls to || S

[R-pkg-devel] use of assert in C++

2024-12-18 Thread Bielow, Chris
Dear all, hoping this is the right place for this: I stumbled upon documentation regarding the use of `assert` in C++ code, in particular, https://cran.r-project.org/web/packages/policies.html states that ``` Thus C/C++ calls to assert/abort/exit/std::terminate, Fortran calls to STOP and so on mu