www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8180] New: UFCS writeln doesn't work with Tuples

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8180

           Summary: UFCS writeln doesn't work with Tuples
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



import std.stdio, std.typecons;
void main() {
    static struct Foo { int x; }
    auto f = Foo(20);
    f.writeln(); // OK
    Tuple!(int) t = tuple(10);
    t.writeln(); // error
}



dmd 2.060alpha gives

test.d(7): Error: not a property t.writeln
test.d(7): Error: function expected before (), not writeln(t) of type void

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 01 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8180


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
          Component|Phobos                      |DMD
           Platform|x86                         |All
         OS/Version|Windows                     |All



This compiler bug. Changed 'component' to DMD.

https://github.com/D-Programming-Language/dmd/pull/979

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 03 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8180




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e9538dc00db8789ab1f686f0a0a2bed7316ee794
fix Issue 8180 - UFCS writeln doesn't work with Tuples

https://github.com/D-Programming-Language/dmd/commit/c7e14655b631365083c6577cd3212877fa87b713


Fix issue 8180 and increase consistency of UFCS lookup

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 15 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8180


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 15 2012