digitalmars.D.learn - Array of user's structs & slicing & opBinary
- Temtaime (4/4) Mar 08 2014 Hi !
- bearophile (5/8) Mar 08 2014 It looks like a language implementation hole (if this is true,
- Temtaime (11/11) Mar 08 2014 Ok, with ints 2.065:
- bearophile (15/19) Mar 08 2014 This compiles:
Hi ! http://dpaste.dzfl.pl/d5b69cfb98f4 Fails to compile. Why? Thanks.
Mar 08 2014
Temtaime:http://dpaste.dzfl.pl/d5b69cfb98f4 Fails to compile. Why? Thanks.It looks like a language implementation hole (if this is true, then it should be regarded as a bug to be fixed). Bye, bearophile
Mar 08 2014
Ok, with ints 2.065: http://dpaste.dzfl.pl/5057b6ce3ff8 And git head says Error: Array operation a[] * 10 not implemented Too strange. But that compiles: http://dpaste.dzfl.pl/0e98d1110d77 Ok, if i rewrite my example in such way: http://dpaste.dzfl.pl/f7aa6aa96821 Should i report a bug? Thanks!
Mar 08 2014
Temtaime:Ok, with ints 2.065: http://dpaste.dzfl.pl/5057b6ce3ff8 And git head says Error: Array operation a[] * 10 not implementedThis compiles: void main() { int[] a, b; b[] = a[] * 10; } Also this: void main() { int[5] a; int[5] b = a[] * 10; } In general D array ops are designed to not allocate memory. But I think their design has some holes. Bye, bearophile
Mar 08 2014