metaeducation / rebol-issues

6 stars 1 forks source link

/mode refinement of QUERY seems to have no effect #1712

Open rebolbot opened 13 years ago

rebolbot commented 13 years ago

Submitted by: abolka

QUERY seems to completely ignore the /mode refinement. The value returned is the same whether called with /mode or /without.

The docs for QUERY state that:

REFINEMENTS:

    /mode -- Get mode information
      field -- NONE will return valid modes for port type (word! none!)

Not sure if that's a leftover, or just functionality not implemented yet.

>> query %foo
== make object! [
    name: %.../foo
    size: 3
    date: 22-Oct-2010/21:34:51+2:00
    type: 'file
]

>> query/mode %foo none
== make object! [
    name: %.../foo
    size: 3
    date: 22-Oct-2010/21:34:51+2:00
    type: 'file
]

>> query/mode %foo 'date
== make object! [
    name: %.../foo
    size: 3
    date: 22-Oct-2010/21:34:51+2:00
    type: 'file
]

CC - Data [ Version: alpha 107 Type: Bug Platform: All Category: Ports Reproduce: Always Fixed-in:none ]

rebolbot commented 13 years ago

Submitted by: Carl

This was kept in the function spec to help remind how it's to be implemented.