@@ -243,7 +243,16 @@ $(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
+ * Function Literals
254
+ * Templates
255
+ * Template Instantiations
247
256
248
257
$(H3 $(LNAME2 alias-type, Type Aliases))
249
258
@@ -294,6 +303,7 @@ $(H3 $(LNAME2 alias-symbol, Symbol Aliases))
294
303
The following alias declarations are valid:
295
304
)
296
305
306
+ $(SPEC_RUNNABLE_EXAMPLE_COMPILE
297
307
--------------------
298
308
template Foo2(T) { alias t = T; }
299
309
alias t1 = Foo2!(int);
@@ -306,6 +316,7 @@ t2 v2; // v2 is type int
306
316
t3 v3; // v3 is type int
307
317
t4 v4; // v4 is type int
308
318
---
319
+ )
309
320
310
321
$(P
311
322
Aliased symbols are useful as a shorthand for a long qualified
@@ -325,11 +336,13 @@ version (linux)
325
336
--------------------
326
337
327
338
$(P
328
- Aliasing can be used to `import` a symbol from an import into the
329
- current scope:
339
+ Aliasing can be used to $(DDSUBLINK spec/module, import-declaration, `import`)
340
+ a symbol from an import into the current scope:
330
341
)
331
342
332
343
--------------------
344
+ static import string;
345
+ ...
333
346
alias strlen = string.strlen;
334
347
--------------------
335
348
@@ -563,7 +576,7 @@ storage within the module. They must be defined in some other object file with a
563
576
matching name which is then linked in.)
564
577
565
578
$(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
579
+ $(DDSUBLINK spec/ attribute, linkage, linkage attribute). If there is no linkage
567
580
attribute it defaults to $(D extern(D)):)
568
581
569
582
---------------
0 commit comments