dlang.org icon indicating copy to clipboard operation
dlang.org copied to clipboard

Clarification on template alias parameters

Open dlangBugzillaToGithub opened this issue 15 years ago • 1 comments

Peter Alexander (@Poita) reported this on 2010-10-23T16:06:04Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=5108

CC List

  • RazvanN

Description

The D documentation needs to clarify when and how alias parameters should work when aliasing variables.

Related news group post: http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=120112

In particular (see post):

- Can a template alias parameter alias a nested function that references variables in the parent function scope? If so, is the alias still valid once the function returns?

- Can a template alias parameter alias a non-static member function?

- Can a template alias parameter alias a function nested in a non-static member function? If so, is the alias still valid once the member function returns?

See also bugs:
http://d.puremagic.com/issues/show_bug.cgi?id=3051
http://d.puremagic.com/issues/show_bug.cgi?id=3052

dlangBugzillaToGithub avatar Oct 23 '10 16:10 dlangBugzillaToGithub

b2.temp commented on 2016-05-29T17:04:06Z

see also https://issues.dlang.org/show_bug.cgi?id=16093

dlangBugzillaToGithub avatar May 29 '16 17:05 dlangBugzillaToGithub