REBOL3 tracker
  0.9.11 beta
Ticket #0001623 User: anonymous

Project:

Previous Next
TypeBug Statussubmitted Date21-Jun-2010 21:49
Versionalpha 99 CategoryNative Submitted bymeijeru
PlatformAll Severityminor Prioritynormal

Summary STACK/WORD yields handle! instead of word!
Description This facility is supposed to yield the name of the function but all it does is yield a value of type handle!
Example code
>> stack 0
== [stack]
>> probe stack/word 0
handle!
;; should be stack

Assigned ton/a Fixed in- Last Update21-Jun-2010 21:52


Comments
(0002396)
meijeru
21-Jun-2010 21:52

Inspection of the stack as implemented in memory shows that the type-number in the value unit on the stack which contains the name of the function is not #20 (meaning type word!) but #34 (meaning type handle!). So it is a small wonder...

As an aside, the utility of stack/word is doubtful because (stack/word i) == pick stack 0 (i + 1) .

Date User Field Action Change
21-Jun-2010 21:52 meijeru Comment : 0002396 Added -
21-Jun-2010 21:49 meijeru Ticket Added -