ID:754714
 
Not a bug
BYOND Version:494
Operating System:Windows 7 Pro
Web Browser:Chrome 19.0.1084.46
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 Developer forums.
Descriptive Problem Summary:
Can't get an output printable list from atom.overlays

Numbered Steps to Reproduce Problem:
Try the code below

Code Snippet (if applicable) to Reproduce Problem:
mob
verb/test()
for(var/v in overlays)
world << v


Expected Results:
An icon, type reference, or text for each entry in overlays

Actual Results:
Bad output error

Not sure if this is by design, so if it is I guess this is a feature request to evaluate to either a text entry or an icon.
From the ref:

"The individual items in the list may not be directly accessed, since they are stored in a special internal format. However, the list operators +=, -=, and the procedures Add, Remove, and Cut work normally."
Ah, well assuming this behavior has been here forever, I can bet they won't change the way this works.

I suppose I'll keep my own copy of the overlays list then.
Lummox JR resolved issue (Not a bug)
You can use the Overlays library which wraps each overlay in a datum so you can read and modify its properties (icon, icon state, layer, pixel offset, etc.) at any time.

http://www.byond.com/developer/Forum_account/Overlays