summary refs log tree commit diff stats
path: root/compiler/hlo.nim
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2014-02-15 14:15:18 +0000
committerDominik Picheta <dominikpicheta@googlemail.com>2014-02-15 14:15:18 +0000
commitde8d47330152d3d973c6ff52b89c9d79b42d590c (patch)
tree577794b9071077758b644b12d87ad5b788ba359a /compiler/hlo.nim
parent66b0582a0bc20cdd428b3e7de86188f53e7a93b5 (diff)
downloadNim-de8d47330152d3d973c6ff52b89c9d79b42d590c.tar.gz
Fixed problems with IOCP procs finishing immediately, added await macro.
Diffstat (limited to 'compiler/hlo.nim')
0 files changed, 0 insertions, 0 deletions
e>1ead3562 ^
fc2046a1 ^
455fbac6 ^
fc2046a1 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14

                                                      
          
                                    
                                                             
                                          
                                 


     
         
                                
                                          
 
# example program: creating and using global variables

def main [
  # allocate 5 locations for globals
  global-space:address:array:location <- new location:type, 5
  # read to globals by using /space:global
  1:number/space:global <- copy 3
  foo
]

def foo [
  # ditto for writing to globals
  $print 1:number/space:global, 10/newline
]