On 6/13/23 10:14 PM, Steven Schveighoffer wrote:
If there isn't a bug I'll file one.
OMG I didn't even see that the first line of your post is the bug report!
I added to it.
-Steve
On 6/13/23 10:02 PM, Steven Schveighoffer wrote:
I need to diagnose further, but most *likely* the problem is that the
typeinfo being passed is incorrect (I believe it's a TypeInfo_Shared,
but the function is expecting a TypeInfo_AssociativeArray)
Further diagnosis is that the `TypeInfo`
On 6/13/23 1:06 PM, mw wrote:
Does anyone know how to fix it? or any work-around?
Built a debug version of dmd/druntime, the failure is here:
https://github.com/dlang/dmd/blob/342a226833a0e9c7a90bbb64ae8dc35aa6d6bfdc/druntime/src/rt/aaA.d#L766
The line is:
```d
immutable keysz =
On 6/13/23 8:02 PM, mw wrote:
On Tuesday, 13 June 2023 at 22:21:10 UTC, Steven Schveighoffer wrote:
As far as I can tell, this problem has been occurring for a long time.
BTW, you don't need to define it in global space, just:
```d
void main()
{
shared aa = ["abc": "123"];
}
```
I have
I would like to have labeled bits in a union with a ubyte.
Something like this:
```d
struct MyStruct {
union {
ubyte status;
bit A, B, C…etc
}
}
```
Is something like this possible?
Thanks
UPDATE: life is too short to debug dlang built-in AA to right,
let's just use HashMap from emsi_containers
https://github.com/mw66/grpc-d/blob/master/source/grpc/server/package.d#L25
```
HashMap!(string, ServiceHandlerInterface) services;
```
After this change, the problem goes away.
I think
On Tuesday, 13 June 2023 at 22:21:10 UTC, Steven Schveighoffer
wrote:
As far as I can tell, this problem has been occurring for a
long time.
BTW, you don't need to define it in global space, just:
```d
void main()
{
shared aa = ["abc": "123"];
}
```
I have to ask the old-timers on this
Hi,
I recently found and started playing with the grpc-d-core[1]
package, and my program structure looks like this:
https://github.com/mw66/grpc-demo/blob/master/source/main.d
If I run L64 alone (without L66 ~ 79 grpc-d part):
```
64: auto t = new Thread({fun();}).start();
```
it works fine.
On Sunday, 11 June 2023 at 21:32:11 UTC, Andy wrote:
[...]
void main() {
import std.stdio;
struct foo {}
foo* fooptr;
static if (is(typeof(fooptr) == T*, T))
writeln("fooptr is a pointer to a ", T.stringof);
else
On 6/13/23 1:06 PM, mw wrote:
https://issues.dlang.org/show_bug.cgi?id=20812
JR 2020-05-08 19:17:02 UTC
Manjaro/Arch x86_64, dmd 2.091.1. ldc does not seem to be affected.
GDC also fails.
```
shared string[string] aa;
void main()
{
aa = [ "abc" : "123" ];
}
```
Program received
On Tuesday, 13 June 2023 at 17:12:41 UTC, Anonymouse wrote:
On Tuesday, 13 June 2023 at 17:06:55 UTC, mw wrote:
Does anyone know how to fix it? or any work-around?
Thanks.
I don't know if it's *correct* or not, but I think I did this
at the time to work around it.
```
shared
On Tuesday, 13 June 2023 at 17:06:55 UTC, mw wrote:
Does anyone know how to fix it? or any work-around?
Thanks.
I don't know if it's *correct* or not, but I think I did this at
the time to work around it.
```
shared string[string] aa;
void main()
{
auto aaTemp = [ "abc" : "123" ];
On Tuesday, 13 June 2023 at 16:46:26 UTC, DLearner wrote:
Only a small thing, but is it intended that:
```
void main() {
// static assert (false, "Static Assert triggered");
assert(false, "Assert triggered");
}
```
produces
```
core.exception.AssertError@staticassertex01.d(4): Assert
Only a small thing, but is it intended that:
```
void main() {
// static assert (false, "Static Assert triggered");
assert(false, "Assert triggered");
}
```
produces
```
core.exception.AssertError@staticassertex01.d(4): Assert triggered
```
but removing the // produces
```
14 matches
Mail list logo