Re: Problem of undefined behaviour with overloaded methods and overloaded delegate's invokers

2017-08-02 Thread knex via Digitalmars-d
On Tuesday, 1 August 2017 at 11:30:07 UTC, John Colvin wrote: looks like a bug to me. Please report at issues.dlang.org Let it be, then. Reported at https://issues.dlang.org/show_bug.cgi?id=17710

Re: Problem of undefined behaviour with overloaded methods and overloaded delegate's invokers

2017-08-01 Thread John Colvin via Digitalmars-d
On Tuesday, 1 August 2017 at 11:07:59 UTC, knex wrote: I came across a strange thing and I am not sure if this is a bug or just an undefined behaviour of a compiler. Here is some sample code to present the case: // alias BoolFirst = void delegate(bool b, string s); alias StringFirst = void

Re: Problem of undefined behaviour with overloaded methods and overloaded delegate's invokers

2017-08-01 Thread knex via Digitalmars-d
Erratum: which is clearly true ---> which is clearly untrue

Problem of undefined behaviour with overloaded methods and overloaded delegate's invokers

2017-08-01 Thread knex via Digitalmars-d
I came across a strange thing and I am not sure if this is a bug or just an undefined behaviour of a compiler. Here is some sample code to present the case: // alias BoolFirst = void delegate(bool b, string s); alias StringFirst = void delegate(string s, bool b); class Caller { void