about summary refs log tree commit diff stats
path: root/subx/examples/ex10
Commit message (Expand)AuthorAgeFilesLines
* 4661Kartik Agaram2018-10-041-0/+0
* 4516Kartik K. Agaram2018-09-241-0/+0
* 4585Kartik Agaram2018-09-211-0/+0
* 4584 - discrepancy between SubX and native x86Kartik Agaram2018-09-211-0/+0
* 4582Kartik Agaram2018-09-211-0/+0
* 4579Kartik Agaram2018-09-211-0/+0
thor Kartik K. Agaram <vc@akkartik.com> 2016-09-10 11:43:00 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2016-09-10 11:47:28 -0700 3318' href='/akkartik/mu/commit/mutable.mu?h=main&id=f8a4a457cdf2d2ccd69260ce19f2cda0490e73fb'>f8a4a457 ^
1
2
3
4
5
6
7
8
9
10
11
12
13



                            
                            


       
                            
             
             

               
# compare immutable-error.mu

def main [
  local-scope
  x:&:num <- new number:type
  foo x
]

def foo x:&:num -> x:&:num [
  local-scope
  load-inputs
  *x <- copy 34
]