[Libreoffice-bugs] [Bug 137670] Simplify uses of sal_math_Double
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Oct 22 09:17:41 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=137670
--- Comment #2 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to Stephan Bergmann from comment #1)
> I tend to disagree with adding such a function (esp. to
> include/sal/mathconf.h, which is part of the stable URE interface; esp. with
> adding it not conditional on LIBO_INTERNAL_ONLY):
The "esp". bits seem like "it's OK to do that *if* it is guarded by
LIBO_INTERNAL_ONLY, *or if* it's outside of include/sal/mathconf.h"? ;-) It
would be nice if you provided a positive set of conditions :-) (I CCed you
exactly because you are the expert who can tell if this is a bad idea after all
- just please be verbose why it's bad.)
> I think the very few
> cases that now use
>
> reinterpret_cast<sal_math_Double *>(X)->E
>
> could just as well use something like
>
> sal_math_Double d;
> d.value = X;
> d.E
>
> instead.
Yes, but this is awkward, and I don't see a benefit in using this form. Do you?
:-)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201022/2f750248/attachment.htm>
More information about the Libreoffice-bugs
mailing list