http://d.puremagic.com/issues/show_bug.cgi?id=9489


Andrej Mitrovic <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
            Summary|writeln of scoped class     |writeln of struct with
                   |instance                    |disabled copy ctor


--- Comment #1 from Andrej Mitrovic <[email protected]> 2013-02-09 
05:44:27 PST ---
Unrelated to scoped classes, the root cause is that writeln() takes its
arguments by value:

import std.stdio;

struct S
{
    @disable this(this);
}

void main()
{
    S s;
    writeln(s);  // error
}

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

Reply via email to