digitalmars.D.bugs - [Issue 2307] New: Cannot use explicitly instantiated template function with array property syntax
- d-bugmail puremagic.com (26/26) Aug 23 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2307
- d-bugmail puremagic.com (17/17) Feb 01 2012 http://d.puremagic.com/issues/show_bug.cgi?id=2307
http://d.puremagic.com/issues/show_bug.cgi?id=2307 Summary: Cannot use explicitly instantiated template function with array property syntax Product: D Version: 2.018 Platform: PC OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: snake.scaly gmail.com Explicitly instantiated template functions do not work as array properties. Consider the example: void foo()(char[] x) {} void main() { char[] y; foo(y); // OK foo!()(y); // OK y.foo(); // OK y.foo!()(); // Error: no property 'foo' for type 'char[]' } I expect y.foo!()() to be equivalent of foo!()(y). --
Aug 23 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2307 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yebblies gmail.com Platform|x86 |All Version|2.018 |D1 Summary|Cannot use explicitly |(D1 only) Cannot use |instantiated template |explicitly instantiated |function with array |template function with |property syntax |array property syntax OS/Version|Windows |All Works in D2 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 01 2012