docs icon indicating copy to clipboard operation
docs copied to clipboard

LENGTH? spec says NONE can be returned

Open gurzgri opened this issue 3 years ago • 0 comments

But LENGTH? on port will always return 0 if port actor tries to return none:

register-scheme make system/standard/scheme [name: 'len actor: context [
    open: func [port] [port]
    length?: func [port] [none]
]]
length? port: open len://test ;== 0

So it's an issue with the docstring, as per https://github.com/red/red/commit/a063f130aeb5f1ab8698db34ead9f650d697d873 the signature has been changed from return: [red-value!] to return: [integer!].

Red 0.6.4 for Windows built 15-Apr-2022/10:42:52+02:00 commit #502097e

gurzgri avatar Apr 16 '22 14:04 gurzgri