Crate - Design by Introspection for D web APIs

Sergey kornburn at yandex.ru
Wed Mar 11 18:56:03 UTC 2026


On Wednesday, 11 March 2026 at 11:41:22 UTC, Bogdan Szabo wrote:
> Let me know if anyone else has setup issues. I will try to fix 
> them.

on macos ldc1.42 arm now the compilation is starting, but I'm 
receiving an error:
```
ldc-osx-arm64/bin/../import/core/internal/newaa.d(209,84): Error: 
can't infer return type in function `keyEqual`
         bool keyEqual(ref const K1 k1, ref const K2 k2) @trusted 
{ return cast()k1 == cast()k2; }
                                                                   
                  ^
ldc-osx-arm64/bin/../import/core/internal/newaa.d(891,29): Error: 
template instance `core.internal.newaa.pure_keyEqual!(ObjectId[], 
ObjectId[])` error instantiating
         if (pb2 is null || !pure_keyEqual!(V, V)(b1.entry.value, 
pb2.entry.value)) // rarely, inference on opEqual breaks builds 
here
                             ^
ldc-osx-arm64/bin/../import/core/internal/newaa.d(908,20):        
instantiated from here: `_aaEqual!(AA!(string, ObjectId[]), 
string, ObjectId[])`
     return _aaEqual(*aa1, *aa2);
                    ^
ldc-osx-arm64/bin/../import/object.d(1387,49):        
instantiated from here: `_aaOpEqual!(string, ObjectId[])`
     alias aaOpEqual(K, V) = core.internal.newaa._aaOpEqual!(K, V);
                                                 ^
../../../.dub/packages/crate/1.0.0/crate/source/crate/collection/BsonQuery.d(87,25):        instantiated from here: `aaOpEqual!(string, ObjectId[])`
         data = ["$not": ["$in": values]].serializeToBson;
                         ^
../../../.dub/packages/crate/1.0.0/crate/source/crate/collection/BsonQuery.d(212,16):        instantiated from here: `anyOf!(ObjectId)`
         return anyOf!ObjectId(values);
```


More information about the Digitalmars-d-announce mailing list