User Tools

Site Tools


4rpl:commands:refwrite

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
4rpl:commands:refwrite [2021/01/13 22:43] – created virgilw4rpl:commands:refwrite [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-~~NOTOC~~ + <=[[4rpl:start| Index]]
-<=[[4rpl:start| Index]]+
  
-=== Syntax === +====== Set Variable by reference ======
-<-VAR+
  
-=== Description === +===== Syntax ===== 
-Pops a name of a variable and an item from the stack and stores the item in the variable.+ 
 +<-varname ->! 
 + 
 +===== Description ===== 
 + 
 +Pops a value from the stack and treats it as a variable name, then pops another value from the stack and assigns it to that variable. 
 + 
 +===== Examples =====
  
-=== Examples === 
 <code 4rpl> <code 4rpl>
 # Build a string by concatenating "xy" and "z" # Build a string by concatenating "xy" and "z"
Line 14: Line 18:
 123 "xy" "z" concat -> 123 "xy" "z" concat ->
 <-xyz trace <-xyz trace
-</code> +</code> 
 + 
 +~~NOTOC~~ 
4rpl/commands/refwrite.1610577802.txt.gz · Last modified: 2025/02/14 14:56 (external edit)