summary refs log tree commit diff stats
path: root/tests/array/tarraycons.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/array/tarraycons.nim')
-rw-r--r--tests/array/tarraycons.nim24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/array/tarraycons.nim b/tests/array/tarraycons.nim
new file mode 100644
index 000000000..7de518b6e
--- /dev/null
+++ b/tests/array/tarraycons.nim
@@ -0,0 +1,24 @@
+discard """
+  file: "tarraycons.nim"
+  line: 14
+  errormsg: "invalid order in array constructor"
+"""
+
+type
+  TEnum = enum
+    eA, eB, eC, eD, eE, eF
+    
+const
+  myMapping: array[TEnum, array[0..1, int]] = [
+    eA: [1, 2],
+    eC: [3, 4],
+    eB: [5, 6],
+    eD: [0: 8, 1: 9],
+    eE: [0: 8, 9],
+    eF: [2, 1: 9]
+  ]
+
+echo myMapping[eC][1]
+
+
+
tle='author Anselm R. Garbe <garbeam@wmii.de> 2006-07-13 09:32:22 +0200 committer Anselm R. Garbe <garbeam@wmii.de> 2006-07-13 09:32:22 +0200 added logo+description' href='/acidbong/suckless/dwm/commit/README?id=650a1fb4e1a798aca48a53739f5bb2649191bc1c'>650a1fb ^
1076f2b




650a1fb ^
01a8d44 ^
650a1fb ^
1076f2b
650a1fb ^
1076f2b
650a1fb ^
1076f2b

650a1fb ^
1076f2b
650a1fb ^
1076f2b



650a1fb ^
44f2e8b ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

                            
 
                                                               

 

            
                                                     



            
                                                               

                                    
                                                                   




                      
           
           
                                                                  
 
            
 
                                                             

                                                        
                              
 
                                                      



             
                                                                        
                                      
dwm - dynamic window manager
----------------------------

dwm is an extremly fast, small, and dynamic X11 window manager.


Requirements
------------
In order to build dwm you need the Xlib header files.


Installation
------------
Edit config.mk to match your local setup. dwm is installed into
the /usr/local namespace by default.

Afterwards enter the following command to build and install dwm (if
necessary as root):

    make clean install


Running dwm
-----------
Add the following line to your .xinitrc to start dwm using startx:

    exec dwm

In order to connect dwm to a specific display, make sure that
the DISPLAY environment variable is set correctly, e.g.:

    DISPLAY=foo.bar:1 exec dwm

This will start dwm on display :1 of the host foo.bar.


Configuration
-------------
The configuration of dwm is done by customizing the wm.h source file. To
customize the key bindings edit dev.c.