User Tools

Site Tools


prpl:refdelete

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
prpl:refdelete [2017/03/26 18:10] – fixed the refdelete operator kajacxprpl:refdelete [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
 <- [[.:prplreference| PRPL reference]] <- [[.:prplreference#vars_and_functions|Vars and Functions]] <- [[.:prplreference| PRPL reference]] <- [[.:prplreference#vars_and_functions|Vars and Functions]]
  
-=====  --! (ref delete)  =====+=====  --! (Ref Delete)  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
Line 10: Line 10:
 Finds a local variable by string name and deletes it. Finds a local variable by string name and deletes it.
  
-Warning: don't use --? (used in CW3), it compiles without warning, but doesn't do anything!+Warning: don't use --? (used in CW3), it deletes a variable named "?" and leaves the variable name on stack (when used like this: "varname" --?)
  
 === Examples === === Examples ===
-<code>+<code prpl>
 42 ->theAnswer  42 ->theAnswer 
 --!("theAnswer" --!("theAnswer"
prpl/refdelete.1490551856.txt.gz · Last modified: 2025/02/14 14:56 (external edit)