December 13, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7103

           Summary: the -property switch vs. template functions with
                    default template arguments
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: webby@beardmouse.org.uk


--- Comment #0 from Richard Webb <webby@beardmouse.org.uk> 2011-12-13 04:58:22 PST ---
if you compile the following code using the DMD 2.057 beta, using the -property switch, then you get no warning or error.

/////////////////////////////////////////////////
import std.stdio;

struct duck
{
    void quack(int I1, int I2 = 0)(bool louder = false)
    {
        if (louder)
            writeln("QUACK");
        else
            writeln("quack");
    }
}

void main()
{
    duck d;
    d.quack!(0);
}
/////////////////////////////////////////////////

However, if you change it to

    d.quack!(0, 0);

then you get

    Error: not a property d.quack

Shouldn't both cases behave the same?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 18, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7103


Ellery Newcomer <ellery-newcomer@utulsa.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ellery-newcomer@utulsa.edu


--- Comment #1 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2012-09-17 20:41:59 PDT ---
dmd 2.060 both versions get you

Error: not a property d.quack

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