[Issue 16370] outdated spec: templated functions allowed in interfaces and functions

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Aug 10 23:26:46 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16370

Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang at jmdavisProg.co
                   |                            |m

--- Comment #4 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
(In reply to Steven Schveighoffer from comment #3)
> The limitation that templates can't be inside functions also is no longer
> true!

IIRC, it at least _was_ the case that you could put a template in a function
but that you could only instantiated it once (which was _very_ annoying for
unit testing). Has that changed? Walter didn't agree that it was a problem and
didn't want to change it. I _thought_ that I'd opened a bug on it, but I can't
find it now (be it closed or open).

--


More information about the Digitalmars-d-bugs mailing list