From tom@@@k@||ber@ @end|ng |rom gm@||@com  Mon Apr  3 15:39:07 2023
From: tom@@@k@||ber@ @end|ng |rom gm@||@com (Tomas Kalibera)
Date: Mon, 3 Apr 2023 15:39:07 +0200
Subject: [Rd] Breaking Change in Rcomplex Layout?
In-Reply-To: <CAPZyOoLG7Bgt0D_Nz-pdBv5k0_SmpFN9UuFE1-mKQxX76L=21g@mail.gmail.com>
References: <CAPZyOoLG7Bgt0D_Nz-pdBv5k0_SmpFN9UuFE1-mKQxX76L=21g@mail.gmail.com>
Message-ID: <e8c052d6-50ae-002d-71ba-5e160b56d419@gmail.com>


On 4/3/23 14:07, Michael Milton wrote:
> Hi all,
>
> There seems to have been a breaking change in the R trunk caused by a fix
> to bug 18430 <https://bugs.r-project.org/show_bug.cgi?id=18430> that
> relates to the layout of the Rcomplex typedef. Previously it was a struct,
> but now it's a union by default
> <https://github.com/r-devel/r-svn/commit/862f9f816ff3ff3cb3f851603f19e99f60a98475#diff-e9b09a44d9dc69444eca2300325e790a0cc6d2c8c3960f47519c7f8ef896f9e4>,
> which breaks downstream code that relied on this layout. I'm aware of
> the R_LEGACY_RCOMPLEX variable, but I still wouldn't expect an unreported
> breaking change especially if it's aimed at R 4.3 (although I'm not sure if
> it is). I believe src/include/R_ext/Complex.h, which this patch affects, is
> considered part of the public R ABI since it's included by R.h.
>
> What should I, as a downstream package developer, do about this change?

Please report the actual problem you have ran into.

Thanks
Tomas

>
> Cheers.
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Breaking Change in Rcomplex Layout?
Tomas Kalibera