]> git.mdlowis.com Git - archive/dlang.git/commitdiff
Updated type sections in the language spec
authorMike D. Lowis <mike@mdlowis.com>
Thu, 15 Mar 2012 18:17:54 +0000 (14:17 -0400)
committerMike D. Lowis <mike@mdlowis.com>
Thu, 15 Mar 2012 18:17:54 +0000 (14:17 -0400)
LANGUAGE.markdown

index 89a05e8003d34bf2687c19f1e6326e654b575e86..cdcd49bc15db1cbcd412dff635b17e07616e7394 100644 (file)
@@ -35,12 +35,34 @@ Here are some examples for defining numbers:
     -4.0e-3
 
 #### Characters
+
+    'A'
+
 #### Symbols
+
+    $some_symbol
+
 #### Boolean Values
 
+    True
+    False
+    Nil
+
 ### Collections
 #### Lists
+
+    ()          # An empty list
+    (1)         # This is NOT a list. This evaluates to 1
+    (1, 2)      # A list with two numbers
+    ('a', 1)    # A list with two elements of different types
+
 #### Vectors
+
+    []          # An empty vector
+    [1]         # A vector with on element
+    [1, 2]      # A vector with two number elements
+    ['a', 1]    # A vector with two elements of different types
+
 #### Maps
 #### Strings
 
@@ -51,6 +73,8 @@ Here are some examples for defining numbers:
 
 ### Streams
 
+A Work In Progress
+
 Operations and Operators
 ----------------------------------------------
 
@@ -77,6 +101,8 @@ A Work In Progress
 Modules
 ----------------------------------------------
 
+A Work In Progress
+
 Macros
 ----------------------------------------------