Release D 2.089.0

John Chapman johnch_atms at hotmail.com
Wed Nov 6 07:30:31 UTC 2019


On Wednesday, 6 November 2019 at 01:16:00 UTC, Manu wrote:
> On Tue, Nov 5, 2019 at 5:14 PM Manu <turkeyman at gmail.com> wrote:
>>
>> On Tue, Nov 5, 2019 at 1:20 PM John Chapman via 
>> Digitalmars-d-announce <digitalmars-d-announce at puremagic.com> 
>> 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


More information about the Digitalmars-d-announce mailing list