On Tue., 5 Nov. 2019, 11:35 pm John Chapman via Digitalmars-d-announce, < [email protected]> wrote:
> On Wednesday, 6 November 2019 at 01:16:00 UTC, Manu wrote: > > On Tue, Nov 5, 2019 at 5:14 PM Manu <[email protected]> wrote: > >> > >> On Tue, Nov 5, 2019 at 1:20 PM John Chapman via > >> Digitalmars-d-announce <[email protected]> > >> wrote: > >> > > >> > On Tuesday, 5 November 2019 at 19:05:10 UTC, Manu wrote: > >> > > Incidentally, in your sample above there, `a` and `b` are > >> > > not shared... why not just write: `cas(&a, null, b);` ?? > >> > > If source data is not shared, you shouldn't cast to shared. > >> > > >> > Because casts were needed in 2.088 and earlier and I just > >> > updated to 2.089, unaware of the API change. Should I log > >> > `null` not working as a bug? > >> > >> Yes > > > > But I also think you should update your code to not perform the > > casts. Can you confirm that the null works when removing the > > shared casts? > > Yes and no - it compiles when removing the casts, but AVs at > runtime. > > Bug filed: https://issues.dlang.org/show_bug.cgi?id=20359 Thanks! I'll look into these as soon as I have a moment. Sorry for the inconvenience.
