opCall/ctor partially sorted out

2012-10-06 Thread bearophile
Recently one of the most important bugs was mostly fixed, beside Win64 support this is one of the most important changes in dmd 2.061: http://d.puremagic.com/issues/show_bug.cgi?id=6036 Do you think this has to be correct code? struct Adder { int v; int opCall(int x) { return x + v;

Re: opCall/ctor partially sorted out

2012-10-06 Thread Jonathan M Davis
On Sunday, October 07, 2012 04:24:33 bearophile wrote: > Recently one of the most important bugs was mostly fixed, beside > Win64 support this is one of the most important changes in dmd > 2.061: > > http://d.puremagic.com/issues/show_bug.cgi?id=6036 > > > Do you think this has to be correct cod

Re: opCall/ctor partially sorted out

2012-10-06 Thread Adam D. Ruppe
On Sunday, 7 October 2012 at 02:36:31 UTC, bearophile wrote: Do you think this has to be correct code? I think it should work, but I'd call it a minor bug if it doesn't because it isn't hard to work around.

Re: opCall/ctor partially sorted out

2012-10-06 Thread Andrej Mitrovic
On 10/7/12, bearophile wrote: > Do you think this has to be correct code? > > struct Adder { > int v; > int opCall(int x) { return x + v; } > } > void main() { > auto a = Adder(5); > } opCall isn't static so there's no ambiguity here imo.

Re: opCall/ctor partially sorted out

2012-10-07 Thread Artur Skawina
On 10/07/12 04:24, bearophile wrote: > Recently one of the most important bugs was mostly fixed, beside Win64 > support this is one of the most important changes in dmd 2.061: > > http://d.puremagic.com/issues/show_bug.cgi?id=6036 > > > Do you think this has to be correct code? > > struct Adde

Re: opCall/ctor partially sorted out

2012-10-07 Thread bearophile
Recently one of the most important bugs was mostly fixed, beside Win64 support this is one of the most important changes in dmd 2.061: http://d.puremagic.com/issues/show_bug.cgi?id=6036 Next important bug to focus on is (in my top5 bug list): http://d.puremagic.com/issues/show_bug.cgi?id=3789

Re: opCall/ctor partially sorted out

2012-10-07 Thread deadalnix
Le 07/10/2012 04:24, bearophile a écrit : Recently one of the most important bugs was mostly fixed, beside Win64 support this is one of the most important changes in dmd 2.061: http://d.puremagic.com/issues/show_bug.cgi?id=6036 Do you think this has to be correct code? struct Adder { int v; i