Skip to content

Commit e17c3f2

Browse files
author
ripley
committed
tweaks
git-svn-id: https://svn.r-project.org/R/trunk@87912 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent ab379a3 commit e17c3f2

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

doc/NEWS.Rd

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@
197197
more about the value in its \code{warning} message. It no longer
198198
replaces \code{-Inf} by the largest \emph{positive} finite number.
199199

200-
\item The documentation of \code{gamma} and \code{is.numeric} is more
201-
specific, thanks to the contributors of \PR{18677}.
200+
\item The documentation of \code{gamma()} and \code{is.numeric()}
201+
is more specific, thanks to the contributors of \PR{18677}.
202202

203203
\item New dataset \code{gait} thanks to \I{Heather Turner} and
204204
\I{Ella Kaye}, used in examples.
@@ -221,9 +221,9 @@
221221
\item This update was mainly bug fixes but contained a barely
222222
documented major change. The set of BLAS routines has been
223223
unchanged since 1988, so throughout \R's history. This update
224-
introduced two new BLAS routines \code{dgemmtr} and
225-
\code{zgemmtr} which are now used by LAPACK routines. This means
226-
that BLAS implementations are no longer interchangeable.
224+
introduced new BLAS routines \code{dgemmtr} and \code{zgemmtr}
225+
which are now used by LAPACK routines. This means that BLAS
226+
implementations are no longer interchangeable.
227227

228228
\item To work around this, \R can be configured with option
229229
\option{--with-2025blas} which arranges for the 2025 BLAS
@@ -375,24 +375,31 @@
375375
when in C17 mode.
376376
377377
A fair amount of code has assumed this: it may be changed to a
378-
smaller type in future.
378+
smaller type in future. In particular, as standard compilers do
379+
not check the validity of assignment to an \code{enum}, it has been
380+
possible to assign \code{NA_INTEGER} to an \code{Rboolean}
381+
variable, coerce it to \code{int} and recover the value.
382+
%% There are claims that the Green Hills compiler can.
383+
%% In C++ rhis was confirmed as undefined behaviour in
384+
%% https://cplusplus.github.io/CWG/issues/1766.html
385+
%% Some versiins of UBSAN caan check it with -fsanitize=enum
379386
380387
If there were a platform which used an underlying type of a
381388
different size this would be an \abbr{ABI}-breaking change (but we are
382389
unaware of any such platform).
383390
384391
\item Header \file{R_ext/Boolean.h} now ensures a \code{bool} type
385392
is available either as a keyword (C23 and C++) or by including the
386-
C99 header \file{stdbool.h}. This is used in places in \R itself
393+
C99 header \file{stdbool.h}. This is bwing used internally in \R
387394
to replace \code{Rboolean} by \code{bool}.
388395
389396
\item There are a new functions \code{asRboolean} and
390397
\code{asBool}, variants of \code{asLogical} more suited to
391398
converting logical arguments to \code{Rboolean} or to \code{bool}.
392399
393400
\item Header \file{R_exts/Error.h} now ensures that
394-
\code{Rf_error} and similar are maeked with the \code{noreturn}
395-
attribute from C++ under all compilers.
401+
\code{Rf_error} and similar are given a \code{noreturn}
402+
attribute when uased from C++ under all compilers.
396403
}
397404
}
398405
@@ -498,7 +505,7 @@
498505
\command{autoconf}-generated \command{configure} scripts.
499506
500507
\item \command{R CMD check} gains option \option{--run-demo} to
501-
check demo scripts like tests.
508+
check demo scripts analogously to tests.
502509
503510
\item \code{R CMD build} now supports \option{--compression=zstd}
504511
on platforms with sufficient support for \command{zstd}.
@@ -684,7 +691,8 @@
684691
\code{grep()}, \code{strsplit()} and similar took
685692
non-\code{TRUE}/\code{FALSE}
686693
values of their logical arguments as \code{FALSE}, but these were
687-
almost always mistakes and are now reported as \code{NA}.
694+
almost always nismatches of unnamed arguments and are now reported
695+
as \code{NA}.
688696
}
689697
}
690698
}

0 commit comments

Comments
 (0)