FunkySwerve wrote...
I don't see what bearing a Lexicon example has on Bioware's original design, as they didn't write the Lexicon.
No, but it is odd for information to be so far off left field if the writers didn't read something that BioWare said or posted.
Likewise, I don't see the relevance of char being colored as a datatype - it's likely a holdover from C. Action is also colored, and we can't even use it. Pragma is also colored, but not used by the bioware compiler. And so on.
"Pragma" and "pragma" is not colored in my Toolset. "action" is still a data type and is not disabled so that it can be used as a variable. Also "void"s can be stored as "action"s as in ActionDoCommand(), so internally "action" is used.
By 8-bit loops, I assume you mean field wraps - this is normal fallback behavior for a field, as I understand it. Also, the engine still handles the values correctly, unlike the bit field ops - take ab, for example. It wraps into negative values, but they are still handled as higher values. By contrast, the bit ops simply error, acting in ways they should not, as fox et al. have pointed out.
Like GetSpellSaveDC() adding 256 in some applications when the modifier is negative and not others.
In C, char is 8 bits, but it isn't really 'storage' for them - it's just the number used by most character sets to define their characters - hence the name. A byte is the more common name for 8 bits.
If the NWScript "char" is a data type I am suggesting, then it would be a weird one, possibly with IntToChar() and CharToInt() functions.
I'm not trying to be belligerent, but I really don't understand your reasoning at all. If bit shifts were being passed through an 8-bit chokehole at any point, the function that I pasted on the previous page would've errored at FAR lower values than the 32nd bit. Unless, of course, you're getting at something I'm just not understanding...
I am not saying all bit shifts just the bit shifts performed on characters. For example ALT + 0255 character might left shift to a ALT + 0254 character.
Modifié par WhiZard, 15 novembre 2011 - 04:47 .