1. crcx
  2. retro-language

Commits

crcx  committed b4cf079 Draft

update parable/memory' to match latest parable

  • Participants
  • Parent commits 4846f86
  • Branches default

Comments (0)

Files changed (1)

File library/parable/memory.rx

View file
   : markUsed  ( n-n )
     [ map + on ] sip ;
 
-  : memory.request  ( -n )
+  : request  ( -n )
     findUnusedSlice markUsed ;
 
-  : memory.release  ( n- )
+  : release  ( n- )
     map + off ;
 
-  : memory.fetch  ( slice offset - value )
+  : fetch  ( slice offset - value )
     [ toSlice ] dip + @ ;
 
-  : memory.store  ( value slice offset - )
+  : store  ( value slice offset - )
     [ toSlice ] dip + ! ;
 
-  : memory.copy   ( source dest - )
+  : copy   ( source dest - )
     [ toSlice ] bi@ 128 copy ;
 
 ;chain