Skip to content

Commit a9a060d

Browse files
authored
[articles/faq] Tweaks (#3903)
Add link to const(FAQ) and remove related items. Move wiki link to top list. Use RUNNABLE_EXAMPLE. Fix typo.
1 parent 1c2c7cb commit a9a060d

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

articles/faq.dd

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ $(D_S $(TITLE),
55
$(P The same questions keep cropping up, so the obvious thing to do is
66
prepare a FAQ.)
77

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)
1014

1115
$(H2 D 2.0 FAQ)
1216

@@ -17,16 +21,6 @@ $(H2 D 2.0 FAQ)
1721

1822
$(LI I suggested a great feature. Why was the suggestion ignored?)
1923

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-
3024
$(LI I want to contribute to D 2.0. How can I effect that?)
3125

3226
$(ITEMR case_range, Why doesn't the case range statement
@@ -48,9 +42,6 @@ $(H2 D 2.0 FAQ)
4842
$(H2 General D FAQ)
4943

5044
$(UL
51-
52-
$(LI $(LINK2 http://www.prowiki.org/wiki4d/wiki.cgi?FaqRoadmap, The D wiki FAQ page)
53-
with many more questions answered)
5445
$(LI $(LINK2 $(ROOT_DIR)comparison.html, What does D have that C++ doesn't?))
5546
$(ITEMR q1, Why the name D?)
5647
$(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?)
365356

366357
$(ITEM anonymous, How do I do anonymous struct/unions in D?)
367358

359+
$(RUNNABLE_EXAMPLE
368360
-----------------------
369361
import std.stdio;
370362

@@ -385,6 +377,7 @@ void main()
385377
Foo.d.offsetof);
386378
}
387379
-----------------------
380+
)
388381

389382
$(ITEM printf, How do I get printf() to work with strings?)
390383

@@ -791,7 +784,7 @@ $(ITEM gc_1, Isn't garbage collection slow and non-deterministic?)
791784
However, the use of GC instead of malloc enables advanced language
792785
constructs (especially, more powerful array syntax), which greatly
793786
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.
795788
)
796789

797790
$(ITEM pure, Can't a sufficiently smart compiler figure out that a function is pure automatically?)

0 commit comments

Comments
 (0)