Skript icon indicating copy to clipboard operation
Skript copied to clipboard

copy recursives list with its indices

Open AKtomik opened this issue 3 years ago • 5 comments

Suggestion

hi ! It would be nice to copy an entiered list whit his recusive objects. but, whit using set {list2::*} to {list1::*}, that not work, and just not copy all recursive varibles from the first list to the second...

I propose tow way to do that :

  • you can make the effect set %objects% to %objects% can copy recursive list
  • or you can add a parameter to this expression like that set recursive %objects% to %objects%, to prevent from lags.

Why?

Its possible to clear recursive list with clear, that clear recursive objects from the list. It would be perfect if you can copy it with set !! To move any data, make backup and copy... Just, use recursive list in full potential 👌

Other

No response

Agreement

  • [X] I have read the guidelines above and affirm I am following them with this suggestion.

AKtomik avatar Jul 24 '22 13:07 AKtomik

Do you mean to allow support for carrying indices to another list? Is this the issue? Screenshot_20220724-233023_Edge

NotSoDelayed avatar Jul 24 '22 15:07 NotSoDelayed

They probably mean to copy all the children of a list e.g. List: {a::*} have {a::b::C::D} = "Y" when executing set {z::*} to {a::*} it should also copy C and D level so you can broadcast {z::b::C::D} which will be Y

Tests image

AyhamAl-Ali avatar Jul 24 '22 15:07 AyhamAl-Ali

Ohh okay, then my example is a different thing from this. Will have it in another issue.

NotSoDelayed avatar Jul 24 '22 15:07 NotSoDelayed

Ohh okay, then my example is a different thing from this. Will have it in another issue.

I believe it's related, if this gets implemented it should already copy the indices as well, e.g. see my example above

AyhamAl-Ali avatar Jul 24 '22 15:07 AyhamAl-Ali

yes, exactly. Copy recursive list, which includes copy his indices. Both are just verry important to use the full potenrial of the variables ! I add it to the title.

AKtomik avatar Jul 24 '22 16:07 AKtomik