Thread overview | ||||||
---|---|---|---|---|---|---|
|
April 04, 2013 [Issue 9874] New: Function call syntax disuniformity in template constraints | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=9874 Summary: Function call syntax disuniformity in template constraints Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: minor Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2013-04-04 05:02:04 PDT --- It seems inside the template constraints functions must be called with a trailing (), unlike from other functions: bool foo() { return true; } void bar1(T)(T) if (foo()) {} // OK void bar2(T)(T) if (foo) {} // error void main() { foo; // OK bar1(0); bar2(0); } dmd 2.063alpha gives: temp.d(5): Error: constraint foo is not constant or does not evaluate to a bool -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 04, 2013 [Issue 9874] Function call syntax disuniformity in template constraints | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=9874 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-04-04 06:03:14 PDT --- https://github.com/D-Programming-Language/dmd/pull/1837 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 07, 2013 [Issue 9874] Function call syntax disuniformity in template constraints | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=9874 --- Comment #2 from github-bugzilla@puremagic.com 2013-04-07 05:26:20 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a61b4a4ee539d137db69a6d2c7e2557f81e96b5b fix Issue 9874 - Function call syntax disuniformity in template constraints https://github.com/D-Programming-Language/dmd/commit/1afa14822650f02a608cecda4a5c53cdb219a7a3 Merge pull request #1837 from 9rnsr/fix9874 Issue 9874 - Function call syntax disuniformity in template constraints -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 07, 2013 [Issue 9874] Function call syntax disuniformity in template constraints | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=9874 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation