request("string") is supposed to send a makeString message to the receiver.

With s = .Stem~new("abc") the following works:
say s~request("string") -- abc

But Stem doesn't even *have* a makeString method:
say s~hasMethod("makeString") -- 0
say .MutableBuffer~new(s) -- Method argument 1 must have a string value

So why then does this work:
say s~makeString -- abc

Maybe some magic from the unknown method?
The docs for unknown say "Reissues or forwards all unknown messages to the
stem's current default value", but neither of below works:
say s~xyzzy -- Object "abc" does not understand message "XYZZY"
say s~'1' -- Object "abc" does not understand message "1"

What's the intention with unknown? Should it support a method access to
stem tails like Directory does?



Which of the above should be considered a bug?  And what as a doc bug?



One last thing: should Stem's toDirectory be (also) named makeDirectory for
consistency and so that s~request("Directory") works?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to