August 23, 2008 [Issue 2307] New: Cannot use explicitly instantiated template function with array property syntax | ||||
---|---|---|---|---|
| ||||
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). -- |
February 01, 2012 [Issue 2307] (D1 only) Cannot use explicitly instantiated template function with array property syntax | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 --- Comment #1 from yebblies <yebblies@gmail.com> 2012-02-02 02:24:23 EST --- Works in D2 -- 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