D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 18754 - Type sequence instantiation missing from language specification
Summary: Type sequence instantiation missing from language specification
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-10 20:27 UTC by Paul Backus
Modified: 2022-07-18 12:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Paul Backus 2018-04-10 20:27:57 UTC
Type sequence instantiation is a special declaration syntax, documented here:

  https://dlang.org/articles/ctarguments.html#type-seq-instantiation

It should be documented in the language specification, most likely in the section about template sequence parameters [1] or in the section about declarations. [2]

[1] https://dlang.org/spec/template.html#variadic-templates
[2] https://dlang.org/spec/declaration.html
Comment 1 Paul Backus 2022-07-18 12:36:12 UTC
The section on "Sequence Parameters" now includes a paragraph documenting this feature:

> A TypeSeq can similarly be used to declare variables. Parameters or variables declared with a TypeSeq are called an lvalue sequence.