Jump to content

Question about List -> String -> List


Domitan Redenblack
 Share

You are about to reply to a thread that has been inactive for 4680 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

default
{ 
    // To propagate an unlimted number of arguments of any type.
    // Presumed, the separator string isn't used in any source string!
    state_entry() 
    {
        list my_list = [1, 2.0, "a string", <1, 2, 3>, <1, 2, 3, 4>, llGetOwner()];  
        string list_parameter = llDumpList2String(my_list, "|");	// Convert the list to a string
        llMessageLinked(LINK_THIS, 0, list_parameter, "")
    }
 
    link_message(integer sender_num, integer num, string list_argument, key id) 
    {
        list re_list = llParseString2List(list_argument, ["|"], []);	// Parse the string back to a list
    }
}

 Doesn't the var re_list end up as a list of strings? Or are the vectors and float and integer preserved types in the new string somehow?

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4680 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...