Jump to page: 1 2
Thread overview
[Issue 6400] opDispatch with WithStatement
May 21, 2014
Vlad Levenfeld
Feb 06, 2015
yebblies
Jul 18, 2015
Philpax
Sep 23, 2015
Luís Marques
Mar 04, 2016
John Colvin
Jun 10, 2016
Jason den Dulk
May 21, 2014
https://issues.dlang.org/show_bug.cgi?id=6400

Vlad Levenfeld <vlevenfeld@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vlevenfeld@gmail.com

--
February 06, 2015
https://issues.dlang.org/show_bug.cgi?id=6400

yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |robert@octarineparrot.com

--- Comment #2 from yebblies <yebblies@gmail.com> ---
*** Issue 9808 has been marked as a duplicate of this issue. ***

--
July 18, 2015
https://issues.dlang.org/show_bug.cgi?id=6400

Philpax <me@philpax.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |me@philpax.me

--- Comment #3 from Philpax <me@philpax.me> ---
Just ran into this issue. From a cursory look at DMD's source code, I noticed that WithStatement::semantic was adding the symbol's scope before calling body->semantic, which means WithStatement has the same scoping rules as a method.

This means that the problem is that opDispatch doesn't work in symbol scope:
----------------
struct A
{
    void opDispatch(string Value)()
    {
        pragma(msg, Value);
    }

    void test()
    {
        // works
        this.hello;
        // NG
        hello;
    }
}
----------------
I'm unsure as to whether this is intended behaviour or not, but resolving the opDispatch scope issue would also resolve this issue.

--
September 23, 2015
https://issues.dlang.org/show_bug.cgi?id=6400

Luís Marques <luis@luismarques.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luis@luismarques.eu

--- Comment #4 from Luís Marques <luis@luismarques.eu> ---
I've also ran into this issue...

--
October 04, 2015
https://issues.dlang.org/show_bug.cgi?id=6400

joeyemmons@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joeyemmons@yahoo.com

--- Comment #5 from joeyemmons@yahoo.com ---
I have also hit this.

--
March 04, 2016
https://issues.dlang.org/show_bug.cgi?id=6400

John Colvin <john.loughran.colvin@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.loughran.colvin@gmail.
                   |                            |com

--- Comment #6 from John Colvin <john.loughran.colvin@gmail.com> ---
It would be very awesome if this was resolved. Both `opDispatch` and `with` are under-appreciated parts of the language with a lot of potential.

--
June 10, 2016
https://issues.dlang.org/show_bug.cgi?id=6400

Jason den Dulk <public2@jasondendulk.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |public2@jasondendulk.com

--- Comment #7 from Jason den Dulk <public2@jasondendulk.com> ---
This is likely the same problem as Issue 8000. I add my voice to ask this be resolved.

--
January 13, 2017
https://issues.dlang.org/show_bug.cgi?id=6400

bitter.taste@gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bitter.taste@gmx.com

--- Comment #8 from bitter.taste@gmx.com ---
Covered by DMD's PR https://github.com/dlang/dmd/pull/6439

--
January 15, 2017
https://issues.dlang.org/show_bug.cgi?id=6400

--- Comment #9 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/2c8008781a23f807be89dfaf858814a1308c9f43 Fix issue 6400 - Better interaction between with() and opDispatch

https://github.com/dlang/dmd/commit/c49fb860d507f75556cfb2108986a8b901d15920 Merge pull request #6439 from LemonBoy/b6400

Fix issue 6400 - Better interaction between with() and opDispatch

--
January 15, 2017
https://issues.dlang.org/show_bug.cgi?id=6400

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--
« First   ‹ Prev
1 2