6.2.1177 DEFER@ defer-fetch CORE EXT

( xt1 -- xt2 )

xt2 is the execution token xt1 is set to execute. An ambiguous condition exists if xt1 is not the execution token of a word defined by DEFER, or if xt1 has not been set to execute an xt.

See:

Implementation:

: DEFER@ ( xt1 -- xt2 )
   >BODY @ ;

Testing:

T{ DEFER defer4 -> }T

T{ ' * ' defer4 DEFER! -> }T
T{ 2 3 defer4 -> 6 }T
T{ ' defer4 DEFER@ -> ' * }T

T{ ' + IS defer4 -> }T
T{ 1 2 defer4 -> 3 }T
T{ ' defer4 DEFER@ -> ' + }T

ContributeContributions