On Tuesday, 28 December 2021 at 10:02:13 UTC, tsbockman wrote:

  // Should be a compile-time error, because it might reassign:
  test[key] = S(value);

This might be a typo in your example but why should it be a compile-time error, it cannot know if the key already exists in compile time on a variable. First time initialization should always work anyway.

`require` and `update` can be fixed rather easily in `object.d`; I have submitted [issue 22633](https://issues.dlang.org/show_bug.cgi?id=22633) with sample code.

Perfect. Thank you.


Reply via email to