https://issues.dlang.org/show_bug.cgi?id=4285
Mathias LANG changed:
What|Removed |Added
Status|REOPENED|RESOLVED
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=4285
--- Comment #5 from bearophile_h...@eml.cc 2012-10-27 04:49:59 PDT ---
Templated functions are allowed inside functions:
void main() {
T foo(T)(T x) {
return x * x;
}
assert(foo(10) == 100);
assert(foo(10L) == 100L);
}
http://d.puremagic.com/issues/show_bug.cgi?id=4285
--- Comment #6 from yebblies yebbl...@gmail.com 2012-10-27 22:54:06 EST ---
(In reply to comment #5)
Templated functions are allowed inside functions:
So why are templates not accepted inside functions? It's a handy all the
turtles down as
http://d.puremagic.com/issues/show_bug.cgi?id=4285
bearophile_h...@eml.cc changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=4285
yebblies yebbl...@gmail.com changed:
What|Removed |Added
Status|RESOLVED|REOPENED
http://d.puremagic.com/issues/show_bug.cgi?id=4285
--- Comment #1 from bearophile_h...@eml.cc 2010-06-06 07:24:00 PDT ---
A similar error message can be used for imports too inside functions.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are
http://d.puremagic.com/issues/show_bug.cgi?id=4285
--- Comment #2 from Ellery Newcomer ellery-newco...@utulsa.edu 2010-06-06
08:22:55 PDT ---
Created an attachment (id=657)
error messages!
good ideas.
note this patch also enables import expressions at statement level, which
wasn't previously
http://d.puremagic.com/issues/show_bug.cgi?id=4285
--- Comment #3 from bearophile_h...@eml.cc 2010-06-06 08:38:02 PDT ---
Thank you Ellery :-)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---