[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible |
Date: |
Mon, 7 Feb 2022 02:20:50 -0500 (EST) |
Follow-up Comment #24, bug #61968 (project octave):
I'm not so certain. That document also says §26.8(4):
> The contents of these headers are the same as the Standard C library headers
<math.h> and <stdlib.h> respectively, with the following changes:
I'm not sure what of the following that means:
- The functions as standardized for C99 are imported (with C linkage).
- Functions with the same name and signature as standardized in C99 are
defined in the `std` namespace (with C++ linkage).
- Both of the above.
Given that the (less ambiguous) standard documentation for C++14 and newer
explicitly lists those functions in the `std` namespace, I'd guess that it is
probably the last. That'd mean that those functions *should* exist in the
`std` namespace according to that document.
All of this discussion is quite academic though because (like we both already
wrote) those functions aren't implemented in the `std` namespace for modern
compilers. That might be an oversight on the part of the compiler vendors. Or
it might be a conscious decision on their part to not implement those
functions (deviating from the standard). I'd understand that decision because
these functions don't "feel like C++". But I didn't find any information on
that...
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61968>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible, (continued)
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible, Kai Torben Ohlhus, 2022/02/05
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible, John W. Eaton, 2022/02/05
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible, John W. Eaton, 2022/02/05
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible, Markus Mützel, 2022/02/06
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible, Markus Mützel, 2022/02/06
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible, Kai Torben Ohlhus, 2022/02/06
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible, Kai Torben Ohlhus, 2022/02/06
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible, Markus Mützel, 2022/02/06
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible, Markus Mützel, 2022/02/06
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible, Kai Torben Ohlhus, 2022/02/06
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible,
Markus Mützel <=
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible, anonymous, 2022/02/08
- [Octave-bug-tracker] [bug #61968] pow2 with two arguments is not Matlab compatible, Markus Mützel, 2022/02/08