User talk:Ppeterson

From Unify Community Wiki
Jump to: navigation, search

Inconsistency in UnityScript versus JavaScript

Hey there. Thanks for your spectacular page - I'm just getting started with Unity, and as someone with a lot of prior programming experience, the page on UnityScript bs. JavaScript was about the clearest thing I've found on the subject.

I've found an inconsistency, and wanted to point it out to you: you say in the section on assignment that in UnityScript assignment cannot be an expression. I've discovered that this isn't true for string concatenation (thank all the gods) - you can say "this" + "will" + "concatenate" and get what you would expect ("thiswillconcatenate"). I haven't verified if this is more widely true, but I wanted to throw it out there, since this is a big time-saver.  :)

Thanks again for the awesome info. The darklorde 19:36, 3 July 2011 (PDT)


No problem! I'm not sure what you mean by your comment about the concatenation; concatenation isn't in itself assignment. I mainly mean that you can't do something like var x = (y = 3);, or if((x = 3) == 3) {...} . Ppeterson 20:03, 3 July 2011 (PDT)

JSONObject

Hey thanks for the linkback to JSONObject! scone 20:08, 6 February 2012 (PDT)

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox