By ref and by pointer kills performance.

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sat Feb 17 01:52:37 UTC 2024


On 17/02/2024 4:12 AM, Kagamin wrote:
> On Friday, 16 February 2024 at 11:10:13 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
>> Immutable objects can be in read only memory, since nothing is allowed 
>> to modify the contents process wide.
> 
> Then you won't be able to create a monitor for them.

Code will still call into the null monitor.

Or we could have a way to disable it at runtime instead by setting a 
field to change behavior to cover all use cases (which is what I 
proposed ;) ).


More information about the Digitalmars-d mailing list