@@ -243,7 +243,17 @@ $(GNAME AliasAssignment):
243
243
244
244
$(P $(I AliasDeclaration)s create a symbol name that refers to another symbol.
245
245
That symbol name can be used anywhere that the aliased symbol may appear.
246
+ The following symbols can be aliased:
246
247
)
248
+ * $(RELATIVE_LINK2 alias-type, Types)
249
+ * $(RELATIVE_LINK2 alias-variable, Variables)
250
+ * Constants
251
+ * Modules
252
+ * Packages
253
+ * Functions
254
+ * Function Literals
255
+ * Templates
256
+ * Template Instantiations
247
257
248
258
$(H3 $(LNAME2 alias-type, Type Aliases))
249
259
@@ -294,6 +304,7 @@ $(H3 $(LNAME2 alias-symbol, Symbol Aliases))
294
304
The following alias declarations are valid:
295
305
)
296
306
307
+ $(SPEC_RUNNABLE_EXAMPLE_COMPILE
297
308
--------------------
298
309
template Foo2(T) { alias t = T; }
299
310
alias t1 = Foo2!(int);
@@ -306,6 +317,7 @@ t2 v2; // v2 is type int
306
317
t3 v3; // v3 is type int
307
318
t4 v4; // v4 is type int
308
319
---
320
+ )
309
321
310
322
$(P
311
323
Aliased symbols are useful as a shorthand for a long qualified
@@ -325,11 +337,13 @@ version (linux)
325
337
--------------------
326
338
327
339
$(P
328
- Aliasing can be used to `import` a symbol from an import into the
329
- current scope:
340
+ Aliasing can be used to $(DDSUBLINK spec/module, import-declaration, `import`)
341
+ a symbol from an imported module or package into the current scope:
330
342
)
331
343
332
344
--------------------
345
+ static import string;
346
+ ...
333
347
alias strlen = string.strlen;
334
348
--------------------
335
349
@@ -563,7 +577,7 @@ storage within the module. They must be defined in some other object file with a
563
577
matching name which is then linked in.)
564
578
565
579
$(P An $(D extern) declaration can optionally be followed by an $(D extern)
566
- $(LINK2 attribute.html$(HASH) linkage, linkage attribute). If there is no linkage
580
+ $(DDSUBLINK spec/ attribute, linkage, linkage attribute). If there is no linkage
567
581
attribute it defaults to $(D extern(D)):)
568
582
569
583
---------------
0 commit comments