Re: Compilation depends on class methods order

2013-12-20 Thread FreeSlave
Make first read function templated too like this: long read()( ubyte* bytes, long len )

Re: Compilation depends on class methods order

2013-12-20 Thread kdmult
On Friday, 20 December 2013 at 08:03:26 UTC, FreeSlave wrote: Make first read function templated too like this: long read()( ubyte* bytes, long len ) In fact, there are workarouns. But why the order of the declarations has an effect on the compilation result. Namely, if the templated

Re: Compilation depends on class methods order

2013-12-20 Thread Andrej Mitrovic
On 12/20/13, Jacob Carlborg d...@me.com wrote: You cannot overload a standard function with a template function, or has that been fixed? That was fixed in 2.064+

Re: Compilation depends on class methods order

2013-12-20 Thread Andrej Mitrovic
On 12/20/13, kdmult kdm...@ya.ru wrote: But why the order of the declarations has an effect on the compilation result. I think you should file this as a bug.

Re: Compilation depends on class methods order

2013-12-20 Thread kdmult
On Friday, 20 December 2013 at 08:42:34 UTC, Andrej Mitrovic wrote: On 12/20/13, kdmult kdm...@ya.ru wrote: But why the order of the declarations has an effect on the compilation result. I think you should file this as a bug. Done. https://d.puremagic.com/issues/show_bug.cgi?id=11785

Re: Compilation depends on class methods order

2013-12-20 Thread Jacob Carlborg
On 2013-12-20 09:42, Andrej Mitrovic wrote: That was fixed in 2.064+ Cool, finally :) -- /Jacob Carlborg

Re: Compilation depends on class methods order

2013-12-20 Thread Andrej Mitrovic
On 12/20/13, Jacob Carlborg d...@me.com wrote: On 2013-12-20 09:42, Andrej Mitrovic wrote: That was fixed in 2.064+ Cool, finally :) Yeah, it caused many headaches. Fixed thanks to Kenji, of course (who else?).

Re: Compilation depends on class methods order

2013-12-20 Thread Jacob Carlborg
On 2013-12-20 15:28, Andrej Mitrovic wrote: Yeah, it caused many headaches. Fixed thanks to Kenji, of course (who else?). Yeah, he's doing a lot of good work :) -- /Jacob Carlborg

Compilation depends on class methods order

2013-12-19 Thread kdmult
Hi, Why compilation depends on order of method declarations? The following test case does not compile. However, if we change the order of the 'read' methods in class InputStream below then compilation will not fail. Is it a bug? --- module test; import std.traits : isBasicType; import

Re: Compilation depends on class methods order

2013-12-19 Thread Jacob Carlborg
On 2013-12-20 08:03, kdmult wrote: Hi, Why compilation depends on order of method declarations? The following test case does not compile. However, if we change the order of the 'read' methods in class InputStream below then compilation will not fail. Is it a bug? --- module test; import