LLM's think we should have language tuples!
Nick Treleaven
nick at geany.org
Fri Apr 4 13:46:45 UTC 2025
On Friday, 4 April 2025 at 12:25:03 UTC, Nick Treleaven wrote:
> I built the branch and tried that sample and some variations,
> but they each get:
> ```
> /home/nick/git/dmd/generated/linux/release/64/../../../../../phobos/std/json.d(144): Error: no property `Entry` for type `object.TypeInfo_AssociativeArray`
> JSONValue[string] unordered;
> ^
> /home/nick/git/dmd/generated/linux/release/64/../../../../druntime/import/object.d(1289): class `TypeInfo_AssociativeArray` defined here
> class TypeInfo_AssociativeArray : TypeInfo
> ^
> ```
> And:
> ```
> core.exception.AssertError at src/dmd/typinf.d(112): Assertion
> failure
> ```
> I'm not sure if it's something to do with my setup or not. My
> Phobos is recent git, probably that's why.
I was using `import std;`. Using single module imports (or
avoiding std) works!
```d
auto (x, y, z) = (1, 2, 3);
void main()
{
import core.stdc.stdio;
printf("%d %d %d\n", x,y,z);
//import std.stdio;
//writeln(x,y,z);
}
```
Uncommenting writeln causes a link error for me though:
```
Error: undefined reference to `pure nothrow bool
core.internal.gc.blockmeta.__setArrayAllocLengthImpl(ref
core.memory.BlkInfo_, ulong, bool, ulong, ulong)`
referenced from `pure nothrow bool
core.internal.array.utils.__setArrayAllocLength!(char).__setArrayAllocLength(ref core.memory.BlkInfo_, ulong, bool, ulong)`
```
More information about the Digitalmars-d
mailing list