Difference between revisions of "User:Pedro Oval/Table of implicit type conversions for list extracting functions"
Jump to navigation
Jump to search
Pedro Oval (talk | contribs) (Add a summary of the results of the table. Fix typo.) |
Pedro Oval (talk | contribs) m (Table formatting) |
||
Line 1: | Line 1: | ||
Table that tells whether an implicit type cast is supported for <code>llList2*</code> depending on the item type in the list. Last tested with this server version: Second Life Server 11.01.25.219622 | Table that tells whether an implicit type cast is supported for <code>llList2*</code> depending on the item type in the list. Last tested with this server version: Second Life Server 11.01.25.219622 | ||
{| | {| {{KBtable}} | ||
|- {{KBtablehead}} | |||
!<br />List item type:<br />Function: !! String !! Key !! Integer !! Float !! Vector !! Rotation | !<br />List item type:<br />Function: !! String !! Key !! Integer !! Float !! Vector !! Rotation | ||
|- | |- style="text-align:center" | ||
!scope="row"|llList2String | !scope="row"|llList2String | ||
| YES || YES || YES || YES || YES || YES | | YES || YES || YES || YES || YES || YES | ||
|- | |- style="text-align:center" | ||
!scope="row"|llList2Key | !scope="row"|llList2Key | ||
| YES || YES || no || no || no || no | | YES || YES || no || no || no || no | ||
|- | |- style="text-align:center" | ||
!scope="row"|llList2Integer | !scope="row"|llList2Integer | ||
| YES || no || YES || YES || no || no | | YES || no || YES || YES || no || no | ||
|- | |- style="text-align:center" | ||
!scope="row"|llList2Float | !scope="row"|llList2Float | ||
| YES || no || YES || YES || no || no | | YES || no || YES || YES || no || no | ||
|- | |- style="text-align:center" | ||
!scope="row"|llList2Vector | !scope="row"|llList2Vector | ||
| no || no || no || no || YES || no | | no || no || no || no || YES || no | ||
|- | |- style="text-align:center" | ||
!scope="row"|llList2Rot | !scope="row"|llList2Rot | ||
| no || no || no || no || no || YES | | no || no || no || no || no || YES |
Revision as of 02:20, 7 February 2011
Table that tells whether an implicit type cast is supported for llList2*
depending on the item type in the list. Last tested with this server version: Second Life Server 11.01.25.219622
List item type: Function: |
String | Key | Integer | Float | Vector | Rotation |
---|---|---|---|---|---|---|
llList2String | YES | YES | YES | YES | YES | YES |
llList2Key | YES | YES | no | no | no | no |
llList2Integer | YES | no | YES | YES | no | no |
llList2Float | YES | no | YES | YES | no | no |
llList2Vector | no | no | no | no | YES | no |
llList2Rot | no | no | no | no | no | YES |
The non-supported conversions for llList2Key
return (key)""
.
The non-supported conversions for llList2Integer
return 0
.
The non-supported conversions for llList2Float
return 0.0
.
The non-supported conversions for llList2Vector
return ZERO_VECTOR
.
The non-supported conversions for llList2Rot
return ZERO_ROTATION
.
In short: llList2String can be applied to all types. A string element can be extracted by all functions except llList2Vector and llList2Rot. Integer and Float are interchangeable. No other implicit conversions are supported.