You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.
This shows you the differences between two versions of the page.
types:string [2015-09-22 19:42 SLT] sei Add/fix links |
types:string [2015-09-22 19:45 SLT] (current) sei Use another trick for raw |
||
---|---|---|---|
Line 94: | Line 94: | ||
If e.g. Philip Linden touches it, the object will say, **Touched by Philip Linden**. | If e.g. Philip Linden touches it, the object will say, **Touched by Philip Linden**. | ||
- | There is no automatic type conversion when concatenating strings. That means that if a plus sign is between a string and something of any other type (except $lty[list]) in any order, a type mismatch error will be generated. For example: ''$lfnr[llOwnerSay]("Your key is " + $lfnr[llGetOwner]());'' will result in a type mismatch, because $lfn[llGetOwner] returns a key, and keys and strings can't be concatenated. You need to add an explicit type cast, e.g. ''llOwnerSay("Your key is " + (string)llGetOwner());'' | + | There is no automatic type conversion when concatenating strings. That means that if a plus sign is between a string and something of any other type (except $lty[list]) in any order, a type mismatch error will be generated. For example: ''$lfn[llOwnerSay|llOwnerSay]("Your key is " + $lfn[llGetOwner|llGetOwner]());'' will result in a type mismatch, because $lfn[llGetOwner] returns a key, and keys and strings can't be concatenated. You need to add an explicit type cast, e.g. ''llOwnerSay("Your key is " + (string)llGetOwner());'' |
If one of the elements is a list, the result is not a string, but a list, and a type mismatch may result at a latter point if a string was expected. See $lty[list] for details. | If one of the elements is a list, the result is not a string, but a list, and a type mismatch may result at a latter point if a string was expected. See $lty[list] for details. |