Handbook
Glossary
pop-d ( -- obj )
Stack effect inference implementation
Prev:
peek-d ( -- obj )
Next:
pop-literal ( -- obj )
Vocabulary
stack-checker
.
backend
Inputs
None
Outputs
obj
object
Word description
Pops an item from the compile time datastack. If the datastack is empty, a new value is instead introduced.
See also
introduce-values
Definition
USING:
arrays
kernel
sequences
stack-checker.state
stack-checker.values
;
IN:
stack-checker.backend
:
pop-d
( -- obj )
meta-d
[
<value>
dup
1array
introduce-values
]
[
pop
meta-d
length
update-inner-d
]
if-empty
;