WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Dev Tools (https://www.wowinterface.com/forums/forumdisplay.php?f=41)
-   -   How do I get started in Addon programming? (https://www.wowinterface.com/forums/showthread.php?t=7354)

Ketho 01-16-11 09:13 AM

Quote:

Originally Posted by desfido (Post 226853)
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 ><

desfido 01-16-11 09:57 AM

Quote:

Originally Posted by Ketho (Post 226857)
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.


All times are GMT -6. The time now is 12:23 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI