PDA

View Full Version : coerce and/or localized strings


2COOL4-U
3rd Nov 2001, 04:03 PM
I've been wondering what the difference is between a normal string and a coerce string. And what the difference is between a normal and a localized string.

FireSlash
3rd Nov 2001, 04:06 PM
you mean like...

var int myvar

agisnt

function tick()
{
local int myvar;
}
?

as in that case, the local varible only has a value inside that function, whereas the one defined as var, has a value throughout the entire class...

usaar33
3rd Nov 2001, 05:59 PM
Originally posted by 2COOL4-U
I've been wondering what the difference is between a normal string and a coerce string. And what the difference is between a normal and a localized string.


A coerce string only applies to functions.
i.e.

Function CoolStuff(coerce string a){
//blah blah blah


All that says is that whatever you pass into cool stuff as a, it will become a string. Without that, you would get a compile error when trying to pass an integer for instance...


Localized strings are used for multi language support. They can only be global vars. UT will look up the string packagename.languageextension file and then under [classname]. If it finds an entry it will use that as the default.

2COOL4-U
4th Nov 2001, 04:00 AM
ok, thanks for the answer