Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
February 03, 2014 [Issue 12070] New: Variant opCall not static | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=12070 Summary: Variant opCall not static Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: Jesse.K.Phillips+D@gmail.com --- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D@gmail.com> 2014-02-03 13:17:12 PST --- In previous versions the following code compiled because there was no opCall: import std.variant; void main() { auto v = Variant(); } Error: need 'this' for 'opCall' of type '@trusted VariantN!(20u)()' The opCall isn't static so it requires a this. A work around seems to be to add null: Variant(null); -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 06, 2014 [Issue 12070] Variant opCall not static | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | https://d.puremagic.com/issues/show_bug.cgi?id=12070 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, rejects-valid Component|Phobos |DMD --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2014-02-05 23:07:41 PST --- https://github.com/D-Programming-Language/dmd/pull/3221 I think the issue has come from a not useful language behavior. So I change "Component" field to "DMD". -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 06, 2014 [Issue 12070] Variant opCall not static | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | https://d.puremagic.com/issues/show_bug.cgi?id=12070 --- Comment #2 from github-bugzilla@puremagic.com 2014-02-06 15:45:18 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7eaeac6759081c45da3dba4902cd932416e29281 fix Issue 12070 - Variant opCall not static If both constructor and opCall exist, `Type()` should be handled as literal syntax for default construction. https://github.com/D-Programming-Language/dmd/commit/231e27f036ba086c42339bbae966e93c2b71cd61 Merge pull request #3221 from 9rnsr/fix12070 [REG2.065a] Issue 12070 - Variant opCall not static -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 07, 2014 [Issue 12070] Variant opCall not static | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | https://d.puremagic.com/issues/show_bug.cgi?id=12070 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 07, 2014 [Issue 12070] Variant opCall not static | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | https://d.puremagic.com/issues/show_bug.cgi?id=12070 --- Comment #3 from github-bugzilla@puremagic.com 2014-02-06 19:34:32 PST --- Commit pushed to 2.065 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/6ec6c31d207e786071190b3a5e3ea4359fb631b7 Merge pull request #3221 from 9rnsr/fix12070 [REG2.065a] Issue 12070 - Variant opCall not static -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation