dmd icon indicating copy to clipboard operation
dmd copied to clipboard

Draft: replace AA runtime hooks with templated implementation

Open rainers opened this issue 7 months ago • 2 comments

Adds the complete templated implementation to newaa.d, keeping binary compatibility with rt/aaa.d for now.

This should help inferring proper function attributes on the operations, aswell as using regular constructors/copy operation on key and value types.

Four of the six compiler hooks are replaced, but there are two more calls from TypeInfo_AssociativeArray's getHash() and equal() to forward.

Most of the time was spent fighting inout in template arguments :/

rainers avatar Mar 23 '25 15:03 rainers