Manu Evans

Results 325 comments of Manu Evans

I just encountered another case of this issue in live code causing a nasty silent bug... I don't think this situation is defensible.

Initialize it to all zeros, then asign the 9 elements to a slice. That has the advantage of being really clear.

You could use some iota-like macro which repeats `0` n-times after the list of explicit initializations? `x = [ 1, 2, 3, repeat!(0, 97) ]`

This is constantly creating ICE in LDC; someone needs to fix this...

So, is this fixed now? Does DMD need to take any action? I thought it was said the problem was a DMD bug, but it seems they fixed it in...

> Just had this thought. What happens here? > > ```d > void callback(void *arg) > { > cast(ref int)arg = 5; > } > ``` > > If this...

I would imagine the same user who is likely to experience that confusion to notice a mismatch between the function argument that appears to be `*`, and their expression which...

@WalterBright This seems to fail the tests... needs a rebase?