mirror of
https://git.sr.ht/~crc_/retroforth
synced 2024-11-16 19:48:56 +01:00
stdlib: rename v:update-using to v:update
FossilOrigin-Name: eddab48fd1025d05e58ab5f0693fb5c951d379b415284c6249bcbab9068d784a
This commit is contained in:
parent
c060275f2f
commit
8745799928
3 changed files with 693 additions and 693 deletions
BIN
ngaImage
BIN
ngaImage
Binary file not shown.
File diff suppressed because it is too large
Load diff
|
@ -603,16 +603,16 @@ Or:
|
|||
#1 'Next var<n>
|
||||
&Next [ fetch #10 * ] sip store
|
||||
|
||||
`v:update-using` replaces this with:
|
||||
`v:update` replaces this with:
|
||||
|
||||
#1 'Next var<n>
|
||||
&Next [ #10 * ] v:update-using
|
||||
&Next [ #10 * ] v:update
|
||||
|
||||
It takes care of preserving the variable address, fetching the
|
||||
stored value, and updating with the resulting value.
|
||||
|
||||
~~~
|
||||
:v:update-using (aq-) swap [ fetch swap call ] sip store ;
|
||||
:v:update (aq-) swap [ fetch swap call ] sip store ;
|
||||
~~~
|
||||
|
||||
I have a simple word `copy` which copies memory to another
|
||||
|
|
Loading…
Reference in a new issue