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



--- Comment #22 from Don <clugd...@yahoo.com.au> 2013-09-23 03:58:11 PDT ---
> ...rules you wouldn't be able to apply to normal functions. For example an
"enforce" that refuses array literals. Can't happen.

Actually it's the other way around. Currently, assert is special.

void enforce(bool b, string msg = "xxx")
{
}

void main()
{
   enforce("zzz");
}


zunk.d(8): Error: function zunk.enforce (bool b, string msg = "xxx") is not
callable using argument types (string)

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

Reply via email to