Bug 18754 – Type sequence instantiation missing from language specification

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-04-10T20:27:57Z
Last change time
2022-07-18T12:36:12Z
Assigned to
No Owner
Creator
Paul Backus

Comments

Comment #0 by snarwin+bugzilla — 2018-04-10T20:27:57Z
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 by snarwin+bugzilla — 2022-07-18T12:36:12Z
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.