You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The semicolon is necessary if you put several variable assignments on the same line. The braces are necessary, even though they are generally optional in DM (since the compiler looks at your indentation). The reason is that the path + initializations must be parsed as a single expression, which is a different context from the usual use of braces in DM when you are defining a true type. Also, indentation inside of an argument list is always ignored anyway.
Don't really know how to explain it other than ;'s aren't necessary within {}'s, unless it's multiple expressions on the same line.
Reproduction Code
/proc/test()
return newlist(
/obj{
name ="bob"
color ="red"
},
/obj{
name ="joe"
color ="blue"
},
)
The text was updated successfully, but these errors were encountered:
https://www.byond.com/docs/ref/#/proc/newlist
Don't really know how to explain it other than
;
's aren't necessary within{}
's, unless it's multiple expressions on the same line.Reproduction Code
The text was updated successfully, but these errors were encountered: