@@ -5,8 +5,12 @@ $(D_S $(TITLE),
5
5
$(P The same questions keep cropping up, so the obvious thing to do is
6
6
prepare a FAQ.)
7
7
8
- $(P $(LINK2 http://www.digitalmars.com/d/1.0/faq.html, D 1.0 FAQ))
9
- $(P $(LINK2 http://www.digitalmars.com/faq.html, C++ FAQ))
8
+ $(P See also:)
9
+
10
+ * $(DDLINK articles/const-faq, const(FAQ), const(FAQ)) for `const` and `immutable`.
11
+ * $(LINK2 http://www.prowiki.org/wiki4d/wiki.cgi?FaqRoadmap, The D wiki FAQ page)
12
+ * $(LINK2 http://www.digitalmars.com/d/1.0/faq.html, D 1.0 FAQ)
13
+ * $(LINK2 http://www.digitalmars.com/faq.html, C++ FAQ)
10
14
11
15
$(H2 D 2.0 FAQ)
12
16
@@ -17,16 +21,6 @@ $(H2 D 2.0 FAQ)
17
21
18
22
$(LI I suggested a great feature. Why was the suggestion ignored?)
19
23
20
- $(LI Why const and immutable?)
21
-
22
- $(LI Why the $(I names) const and immutable?)
23
-
24
- $(LI How exactly is immutable related to multicores?)
25
-
26
- $(LI Ok, I'm fine with immutable for safe data sharing among threads. But why do we need the uninformative const?)
27
-
28
- $(LI Why are immutable strings favored in D 2.0?)
29
-
30
24
$(LI I want to contribute to D 2.0. How can I effect that?)
31
25
32
26
$(ITEMR case_range, Why doesn't the case range statement
@@ -48,9 +42,6 @@ $(H2 D 2.0 FAQ)
48
42
$(H2 General D FAQ)
49
43
50
44
$(UL
51
-
52
- $(LI $(LINK2 http://www.prowiki.org/wiki4d/wiki.cgi?FaqRoadmap, The D wiki FAQ page)
53
- with many more questions answered)
54
45
$(LI $(LINK2 $(ROOT_DIR)comparison.html, What does D have that C++ doesn't?))
55
46
$(ITEMR q1, Why the name D?)
56
47
$(ITEMR q1_1, Could you change the name? D is kind of hard to search for on search engines.)
@@ -365,6 +356,7 @@ $(ITEM real, What is the point of 80 bit reals?)
365
356
366
357
$(ITEM anonymous, How do I do anonymous struct/unions in D?)
367
358
359
+ $(RUNNABLE_EXAMPLE
368
360
-----------------------
369
361
import std.stdio;
370
362
@@ -385,6 +377,7 @@ void main()
385
377
Foo.d.offsetof);
386
378
}
387
379
-----------------------
380
+ )
388
381
389
382
$(ITEM printf, How do I get printf() to work with strings?)
390
383
@@ -791,7 +784,7 @@ $(ITEM gc_1, Isn't garbage collection slow and non-deterministic?)
791
784
However, the use of GC instead of malloc enables advanced language
792
785
constructs (especially, more powerful array syntax), which greatly
793
786
reduce the number of memory allocations which need to be made.
794
- This can mean that GC is actually faster than explict management.
787
+ This can mean that GC is actually faster than explicit management.
795
788
)
796
789
797
790
$(ITEM pure, Can't a sufficiently smart compiler figure out that a function is pure automatically?)
0 commit comments