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

2024-12-19 Thread Duncan Murdoch
On 2024-12-19 7:45 a.m., Bielow, Chris wrote: || 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 ha

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 Dirk Eddelbuettel
On 19 December 2024 at 06:06, Duncan Murdoch wrote: | 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

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

2024-12-19 Thread Duncan Murdoch
On 2024-12-19 5:14 a.m., Bielow, Chris wrote: || 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/abor

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

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

2024-12-18 Thread Dirk Eddelbuettel
On 18 December 2024 at 19:46, Bielow, Chris wrote: | 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