[Issue 620] Can't use property syntax with a template function
https://issues.dlang.org/show_bug.cgi?id=620 --- Comment #9 from Dlang Bot --- dlang-community/DCD pull request #622 "Fix #620" was merged into master: - dbc9d82f708f18354d5ba26e5efbcf2997c6ba11 by Hackerpilot: Update several dependencies. libdparse: Get support for 'throw' as a function attribute dsymbol: A bug fix that will fix issue 620 msgpack-d: Fix some deprecations and some build issues on Windows containers: Some bug fixes. https://github.com/dlang-community/DCD/pull/622 --
[Issue 620] Can't use property syntax with a template function
http://d.puremagic.com/issues/show_bug.cgi?id=620 Don changed: What|Removed |Added Status|ASSIGNED|RESOLVED Version|D1 |D2 Resolution||FIXED --- Comment #8 from Don 2012-11-12 23:48:20 PST --- Closing since fixed on D2. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 620] Can't use property syntax with a template function
http://d.puremagic.com/issues/show_bug.cgi?id=620 Walter Bright changed: What|Removed |Added Version|0.175 |D1 --- Comment #7 from Walter Bright 2012-01-26 17:12:27 PST --- Fixed for D2. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 620] Can't use property syntax with a template function
http://d.puremagic.com/issues/show_bug.cgi?id=620 --- Comment #6 from github-bugzi...@puremagic.com 2012-01-26 12:06:20 PST --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/8bc639fb00cab9002b91a1d900ddd72f56f993a4 Merge pull request #280 from 9rnsr/propDispatch Issue 620 - Can't use property syntax with a template function -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 620] Can't use property syntax with a template function
http://d.puremagic.com/issues/show_bug.cgi?id=620 Kenji Hara changed: What|Removed |Added Keywords||patch CC||k.hara...@gmail.com --- Comment #5 from Kenji Hara 2011-07-29 06:29:13 PDT --- I think this is not enhancement at least D2. opDispatch for property syntax needs fixing this issue. struct S { template opDispatch(string name) { @property int opDispatch(A...)(A args) { static if (args.length) return args[0]; else return 0; } } } void main() { S s; s.prop == 0; // Error: s.opDispatch(A...) has no value } I have posted D2 patch. https://github.com/D-Programming-Language/dmd/pull/280 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 620] Can't use property syntax with a template function
http://d.puremagic.com/issues/show_bug.cgi?id=620 Alex Khmara changed: What|Removed |Added CC||alex.khm...@gmail.com --- Comment #4 from Alex Khmara 2011-01-01 22:22:42 PST --- (In reply to comment #3) > Some hacking about showed me that opDispatch has a workaround for this > problem, > by using a two-layer approach: > > template opDispatch( string name ) { > auto opDispatch( T... )( T args ) { > // Do something! > } > } This workaroung is only partial. This code produces "Error: s.opDispatch(T...) has no value". import std.stdio; struct S { template opDispatch( string name ) { string opDispatch( T... )( T args ) { return "bar"; } } } void main() { S s; string str = s.foo; } Same if I try "auto opDispatch" instead of "string". -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 620] Can't use property syntax with a template function
http://d.puremagic.com/issues/show_bug.cgi?id=620 Andrei Alexandrescu changed: What|Removed |Added Status|NEW |ASSIGNED CC||and...@metalanguage.com AssignedTo|nob...@puremagic.com|bugzi...@digitalmars.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 620] Can't use property syntax with a template function
http://d.puremagic.com/issues/show_bug.cgi?id=620 --- Comment #3 from Simen Kjaeraas 2010-10-31 12:29:14 PDT --- Some hacking about showed me that opDispatch has a workaround for this problem, by using a two-layer approach: template opDispatch( string name ) { auto opDispatch( T... )( T args ) { // Do something! } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 620] Can't use property syntax with a template function
http://d.puremagic.com/issues/show_bug.cgi?id=620 Trass3r changed: What|Removed |Added CC||mrmoc...@gmx.de --- Comment #2 from Trass3r 2010-10-29 03:52:29 PDT --- Yeah opDispatch could be used for vector swizzling setters. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 620] Can't use property syntax with a template function
http://d.puremagic.com/issues/show_bug.cgi?id=620 Simen Kjaeraas changed: What|Removed |Added CC||simen.kja...@gmail.com --- Comment #1 from Simen Kjaeraas 2010-10-01 15:25:37 PDT --- Could we please get this one fixed? Especially now with opDispatch, this is a painful one. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---