]> gitweb.factorcode.org Git - factor.git/commit
compiler.units: fix modify-code-heap example.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 5 May 2017 15:38:49 +0000 (08:38 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 5 May 2017 15:38:49 +0000 (08:38 -0700)
commitf75743ecf7a6b9b123ef020769022129530deb3a
treeeeee888007f12c993209d6e619fab171e2ff2f3c
parent1898c2bb3afc38486104876bddc56185fc8537fe
compiler.units: fix modify-code-heap example.

Make sure ``foo`` has the same stack effect as the quotation that is
set on ``foo`` with ``modify-code-heap``.  The symbol had a stack
effect of ( -- x ) since it pushes itself when it is called. The
quotation in the example had stack effect ( -- ).
core/compiler/units/units-docs.factor