about summary refs log blame commit diff stats
path: root/mutable.mu
blob: 1a1ec7f08a6e43e7b301a335b946a563852bd376 (plain) (tree)
1
2
3
4
5
6
7
8
9



                            
                            


       
                            
             
             

               
# 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
]
id='n31' href='#n31'>31 32 33 34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
                  

         
                



           
                   

            
                 
                   
                    








                        
           

        
                                                    






                                             


                                                                            


                                  
 
                     





                       
                   
image: openbsd/7.0

packages:
  - gcc-11.2.0p0
  - cmake
  - gmake
  - cmocka
  - libtool
  - automake-1.16.3
  - pkgconf
  - readline
  - python-3.8.12
  - autoconf-2.69p3
  - autoconf-archive
  - curl
  - gpgme
  - glib2
  - gtk+2
  - libotr
  - libassuan
  - libgpg-error
  - libgcrypt
  - libsignal-protocol-c
  - sqlite3

sources:
  - https://github.com/strophe/libstrophe.git#0.11.0
  - https://github.com/profanity-im/profanity

environment:
  LANG: en_US.UTF-8

tasks:
  - symlink: |
      doas ln -sf /usr/local/bin/python3 /usr/local/bin/python
      doas ln -sf /usr/local/bin/python3-config /usr/local/bin/python-config
      doas ln -sf /usr/local/bin/pydoc3  /usr/local/bin/pydoc
  - build: |
      export AUTOCONF_VERSION=2.69
      export AUTOMAKE_VERSION=1.16

      cd ~/libstrophe
      ./bootstrap.sh
      ./configure
      make
      doas make install

      cd ~/profanity
      ./ci-build.sh