@@ -1591,16 +1591,23 @@ $(GNAME PostfixExpression):
1591
1591
)
1592
1592
1593
1593
$(TABLE
1594
- $(THEAD Operator , Description)
1595
- $(TROW `.`,
1594
+ $(THEAD Operation , Description)
1595
+ $(TROW `.` *Identifier* ,
1596
1596
Either:
1597
1597
* Access a $(DDLINK spec/property, Properties, property) of a type or expression.
1598
1598
* Access a member of a module, package, aggregate type or instance, enum
1599
1599
or template instance.
1600
1600
* Call a free function using $(DDSUBLINK spec/function, pseudo-member, UFCS).
1601
1601
)
1602
+ $(TROW `.` *NewExpression*, Instantiate a $(DDSUBLINK spec/class, nested-explicit,
1603
+ nested class))
1602
1604
$(TROW `++`, Increment after use - see $(RELATIVE_LINK2 order-of-evaluation, order of evaluation))
1603
1605
$(TROW `--`, Decrement after use)
1606
+ $(TROW `(args)`,
1607
+ Either:
1608
+ * Call an expression with optional arguments
1609
+ * Construct a type with optional arguments
1610
+ )
1604
1611
$(TROW *IndexOperation*, Select a single element)
1605
1612
$(TROW *SliceOperation*, Select a series of elements)
1606
1613
)
@@ -1623,14 +1630,26 @@ $(GNAME NamedArgument):
1623
1630
$(GLINK AssignExpression)
1624
1631
)
1625
1632
1626
- $(P A callable expression can precede a list of named arguments in parentheses.)
1633
+ $(P A callable expression can precede a list of named arguments in parentheses.
1634
+ The following expressions can be called:)
1635
+
1636
+ * A function
1637
+ * A function pointer
1638
+ * A delegate
1639
+ * An aggregate type instance which defines
1640
+ $(DDSUBLINK spec/operatoroverloading, function-call, `opCall`)
1627
1641
1642
+ $(SPEC_RUNNABLE_EXAMPLE_COMPILE
1628
1643
---
1629
1644
void f(int, int);
1630
1645
1631
- f(5, 6);
1632
- (&f)(5, 6);
1646
+ void g()
1647
+ {
1648
+ f(5, 6);
1649
+ (&f)(5, 6);
1650
+ }
1633
1651
---
1652
+ )
1634
1653
1635
1654
$(H4 $(LNAME2 argument-parameter-matching, Matching Arguments to Parameters))
1636
1655
0 commit comments