ID:2416777
 
Not a bug
BYOND Version:512
Operating System:Windows 10 Pro 64-bit
Web Browser:Chrome 70.0.3538.110
Applies to:DM Language
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:

Numbered Steps to Reproduce Problem:

Code Snippet (if applicable) to Reproduce Problem:
var/list/foo = view(5,usr)
var/list/bar = view(usr,5)


Expected Results:

Actual Results:

Does the problem occur:
Every time? Or how often? All the time
In other games? Not sure
In other user accounts? Definitely
On other computers? Yes

When does the problem NOT occur?

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.) Not sure

Workarounds:

Basically you can swap variables of view() proc and it will still work. I tested it on Aurora master branch of SS13. Example I had is with hostile mob(mob have usr as null), so view(7) would not work, but view(src, 7) and view(7, src) works exactly same. This goes against the documentation http://www.byond.com/docs/ref/info.html#/proc/view

Example of it was in first commit of https://github.com/Aurorastation/Aurora.3/pull/5783

From the reference:
Both arguments are optional and may be passed in any order.
Nadrew resolved issue (Not a bug)
view(7)
essentially defaults to view(7,usr) as per the documentation.

If 'usr' isn't the same as 'src' in your case, the results will be different.