relaxed memory model function attribute

JasonKitty angelaesper43 at gmail.com
Thu Oct 31 07:06:38 UTC 2024


On Thursday, 12 September 2024 at 16:20:34 UTC, sternwaytrysail 
wrote:
> On Wednesday, 31 July 2024 at 10:16:57 UTC, kinke wrote:
>> On Tuesday, 30 July 2024 at 16:50:05 UTC, Bruce Carneal wrote:
>>> Would an @restrict function attribute that applied to all ptr 
>>> and slice arguments be hard to implement?
>>
>> I don't think it'd be a good idea in general, and it wouldn't 
>> simplify the implementation of `@restrict` for slices at all, 
>> which would most likely need an ABI change 
>> (https://forum.dlang.org/post/vgfxycegiagawfxaenwg@forum.dlang.orghttps://sexdolltech.com/).
>
> So do you have any other solutions to the problems people are 
> facing?

You might consider other approaches, such as using pointer-based 
methods or reference counting to manage memory safely.



More information about the digitalmars-d-ldc mailing list