Reply
 
Thread Tools Display Modes
Old 01-16-11, 08:13 AM   #21
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 542
Originally Posted by desfido View Post
Lua is more generous with allowing arithmetic values to be used in string contexts than someone might otherwise expect,
That's called Coercion right? or am I mistaking it for something else ><
__________________
Ketho is offline   Reply With Quote
Old 01-16-11, 08:57 AM   #22
desfido
A Defias Bandit
Join Date: Mar 2005
Posts: 2
Originally Posted by Ketho View Post
That's called Coercion right? or am I mistaking it for something else ><
You're correct.

One thing that I'd definitely make a note of, though, is that coercion occurs in statically typed languages as well, particularly the ones people tend to be most familiar with (C, C++, Java). While they don't directly say that it doesn't in your link, they write in such a way that it could be incorrectly inferred that coercion is about static vs dynamic typing, when it's not. In fact, one that many people who write in C, C++, & Java often make use of without thinking about it is the implicit coercion from integer types to floating point types.
desfido is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Dev Tools » How do I get started in Addon programming?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off