Skip to content

Commit

Permalink
added contents box to the overview page
Browse files Browse the repository at this point in the history
  • Loading branch information
JackStouffer committed Dec 6, 2015
1 parent b480362 commit 616617b
Showing 1 changed file with 53 additions and 27 deletions.
80 changes: 53 additions & 27 deletions overview.dd
Expand Up @@ -2,7 +2,40 @@ Ddoc

$(D_S Overview,

$(SECTION2 What is D?,
$(DIVC page-contents quickindex,
$(DIVC page-contents-header,
$(H3 Contents)
)
$(OL
$(LI $(RELATIVE_LINK2 what_is_d, What is D?))
$(LI $(RELATIVE_LINK2 why_d, Why D?)$(OL
$(LI $(RELATIVE_LINK2 goals, Major Design Goals of D))
$(LI $(RELATIVE_LINK2 features_to_keep, Features To Keep From C++))
$(LI $(RELATIVE_LINK2 features_to_drop, Features To Drop From C++))
$(LI $(RELATIVE_LINK2 for_d, Who D is For?))
$(LI $(RELATIVE_LINK2 not_for_d, Who D is Not For?))
))
$(LI $(RELATIVE_LINK2 major_features, Major Features of D)$(OL
$(LI $(RELATIVE_LINK2 OOP, Object Oriented Programming))
$(LI $(RELATIVE_LINK2 functional, Functional Programming))
$(LI $(RELATIVE_LINK2 productivity, Productivity))
$(LI $(RELATIVE_LINK2 functions, Functions))
$(LI $(RELATIVE_LINK2 arrays, Arrays))
$(LI $(RELATIVE_LINK2 ranges, Ranges))
$(LI $(RELATIVE_LINK2 resource, Resource Management))
$(LI $(RELATIVE_LINK2 performance, Performance))
$(LI $(RELATIVE_LINK2 reliability, Reliability))
$(LI $(RELATIVE_LINK2 compatibility, Compatibility))
$(LI $(RELATIVE_LINK2 management, Project Management))
))
$(LI $(RELATIVE_LINK2 sample, Sample D Program))
)
)
)

$(SECTION2 $(LNAME2 what_is_d, What is D?),

<img src="images/d3.png" border="0" align="left" alt="D Man">

$(P D is a general purpose systems and applications programming language.
It is a high level language, but retains the ability
Expand All @@ -14,8 +47,6 @@ $(SECTION2 What is D?,
million line programs with teams of developers. D is easy
to learn, provides many capabilities to aid the programmer,
and is well suited to aggressive compiler optimization technology.

<img src="images/d3.png" border="0" align="right" alt="D Man">
)

$(P D is not a scripting language, nor an interpreted language.
Expand All @@ -35,8 +66,7 @@ $(SECTION2 What is D?,
)
)


$(SECTION2 Why D?,
$(SECTION2 $(LNAME2 why_d, Why D?),

$(P Why, indeed. Who needs another programming language?
)
Expand Down Expand Up @@ -78,7 +108,7 @@ $(SECTION2 Why D?,
primitive compilers.
)

$(SECTION3 Major Design Goals of D,
$(SECTION3 $(LNAME2 goals, Major Design Goals of D),

$(P Everything in designing a language is a tradeoff. Keeping some
principles in mind will help to make the right decisions.)
Expand Down Expand Up @@ -133,7 +163,7 @@ $(SECTION3 Major Design Goals of D,
)
)

$(SECTION3 Features To Keep,
$(SECTION3 $(LNAME2 features_to_keep, Features To Keep From C++),

$(P The general look of D is like C and C++. This makes it easier to learn
and port code to D. Transitioning from C/C++ to D should feel natural.
Expand Down Expand Up @@ -230,8 +260,7 @@ $(SECTION3 Features To Keep,
)
)

$(SECTION3 Features To Drop,

$(SECTION3 $(LNAME2 features_to_drop, Features To Drop From C++),
$(UL
$(LI C source code compatibility. Extensions to C that maintain
source compatibility
Expand Down Expand Up @@ -348,7 +377,7 @@ $(UL
)
)

$(SECTION3 Who D is For,
$(SECTION3 $(LNAME2 for_d, Who is D For?),

$(UL
$(LI Programmers who routinely use lint or similar code analysis tools
Expand Down Expand Up @@ -408,7 +437,7 @@ $(UL
)
)

$(SECTION3 Who D is Not For,
$(SECTION3 $(LNAME2 not_for_d, Who D is Not For?),

$(UL
$(LI Realistically, nobody is going to convert million line C or C++
Expand All @@ -434,16 +463,13 @@ $(SECTION3 Who D is Not For,
)

)



$(SECTION2 Major Features of D,
$(SECTION2 $(LNAME2 major_features, Major Features of D),

$(P This section lists some of the more interesting features of D
in various categories.
)

$(SECTION3 Object Oriented Programming,
$(SECTION3 $(LNAME2 OOP, Object Oriented Programming),

$(SECTION4 Classes,

Expand Down Expand Up @@ -476,7 +502,7 @@ $(SECTION3 Object Oriented Programming,
)
)

$(SECTION3 Functional Programming,
$(SECTION3 $(LNAME2 functional, Functional Programming),

$(P Functional programming has a lot to offer in terms of encapsulation,
concurrent programming, memory safety, and composition. D's support for
Expand All @@ -491,7 +517,7 @@ $(SECTION3 Functional Programming,

)

$(SECTION3 Productivity,
$(SECTION3 $(LNAME2 productivity, Productivity),

$(SECTION4 Modules,

Expand Down Expand Up @@ -648,7 +674,7 @@ class Bar
)
)

$(SECTION3 Functions,
$(SECTION3 $(LNAME2 functions, Functions),

$(P D has the expected support for ordinary functions including
global functions, overloaded functions, inlining of functions,
Expand Down Expand Up @@ -693,7 +719,7 @@ $(SECTION3 Functions,
)
)

$(SECTION3 Arrays,
$(SECTION3 $(LNAME2 arrays, Arrays),

$(P C arrays have several faults that can be corrected:
)
Expand Down Expand Up @@ -758,7 +784,7 @@ long[] func(int x); // declares a function returning an array of longs
)


$(SECTION3 Ranges,
$(SECTION3 $(LNAME2 ranges, Ranges),
$(P D uses the concept of a range in lieu of iterators or generators found in
other languages. A range is any type that provides a common interface to a
sequence of values. The purpose of a range is to allow for a simpler way to
Expand Down Expand Up @@ -964,7 +990,7 @@ void main()

)

$(SECTION3 Resource Management,
$(SECTION3 $(LNAME2 resource, Resource Management),

$(SECTION4 Automatic Memory Management,

Expand Down Expand Up @@ -1006,7 +1032,7 @@ $(SECTION3 Resource Management,
)


$(SECTION3 Performance,
$(SECTION3 $(LNAME2 performance, Performance),

$(SECTION4 Lightweight Aggregates,

Expand Down Expand Up @@ -1038,7 +1064,7 @@ $(SECTION3 Performance,
)


$(SECTION3 Reliability,
$(SECTION3 $(LNAME2 reliability, Reliability),

$(P A modern language should do all it can to help the programmer flush
out bugs in the code. Help can come in many forms;
Expand Down Expand Up @@ -1193,7 +1219,7 @@ synchronized int func() { ... }
)
)

$(SECTION3 Compatibility,
$(SECTION3 $(LNAME2 compatibility, Compatibility),

$(SECTION4 Operator precedence and evaluation rules,

Expand Down Expand Up @@ -1243,7 +1269,7 @@ $(SECTION3 Compatibility,
)
)

$(SECTION3 Project Management,
$(SECTION3 $(LNAME2 management, Project Management),

$(SECTION4 Versioning,

Expand All @@ -1268,7 +1294,7 @@ $(SECTION3 Project Management,
)


$(SECTION2 Sample D Program (sieve.d),
$(SECTION2 $(LNAME2 sample, Sample D Program (sieve.d)),
----
/* Sieve of Eratosthenes prime numbers */

Expand Down

0 comments on commit 616617b

Please sign in to comment.