Object.DeepClone()

Propose new features and changes
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Object.DeepClone()

21 Jan 2019, 17:03

i know there are functions out there that already do this, but i think itd be cool if this was in by default

for the time being, whats the definitive way to deep clone anyway? with all circular reference mumbo jumbo etc. taken into account, that is
i found this function by geekdude: https://autohotkey.com/board/topic/85201-array-deep-copy-treeview-viewer-and-more/
is this it?
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Object.DeepClone()

21 Jan 2019, 18:29

You can try ObjDump and ObjLoad which are included in AHK_H.
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Object.DeepClone()

22 Jan 2019, 01:49

yep those work pretty well, thanks for the tip
although, i still think an _h agnostic native solution is in order
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Object.DeepClone()

03 Jul 2019, 09:37

+1 (either built-in with whichever name, or a documentation example)

Discussion here:
Duplicate an array and change the value - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=65937
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 58 guests