<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Object Clone]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15307&amp;type=atom" />
	<updated>2020-04-15T11:55:09Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15307</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Object Clone]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139034#p139034" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Спасибо, но у меня вопрос в толковании справки.</p></blockquote></div><p>Как-то не увидел этого в первом сообщении, там было предположение о работе команды.</p><p>Но если угодно толковать справку, то пожалуйста, команда описана одним предложением:<br /></p><div class="quotebox"><blockquote><p><a href="https://www.autohotkey.com/docs/objects/Object.htm#Clone">Returns a shallow copy of the object.</a></p></blockquote></div><p>Ах да, <a href="https://lmgtfy.com/?q=shallow+%D0%BF%D0%B5%D1%80%D0%B5%D0%B2%D0%BE%D0%B4">чуть не забыл</a>.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2020-04-15T11:55:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139034#p139034</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Object Clone]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139031#p139031" />
			<content type="html"><![CDATA[<p><a href="https://webdevblog.ru/glubokoe-i-poverhnostnoe-kopirovanie-v-python/">https://webdevblog.ru/glubokoe-i-poverh … -v-python/</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-04-15T09:55:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139031#p139031</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Object Clone]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139030#p139030" />
			<content type="html"><![CDATA[<p>Спасибо, но у меня вопрос в толковании справки.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-04-15T08:29:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139030#p139030</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Object Clone]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139028#p139028" />
			<content type="html"><![CDATA[<p>Хотя бы так:<br /><a href="https://autohotkey.com/board/topic/69542-objectclone-doesnt-create-a-copy-keeps-references/">https://autohotkey.com/board/topic/6954 … eferences/</a><br /><a href="https://www.autohotkey.com/boards/viewtopic.php?t=55754">https://www.autohotkey.com/boards/viewtopic.php?t=55754</a></p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2020-04-14T20:55:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139028#p139028</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Object Clone]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139027#p139027" />
			<content type="html"><![CDATA[<p>Вложенные объекты тоже надо клонировать.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2020-04-14T20:50:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139027#p139027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Object Clone]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139026#p139026" />
			<content type="html"><![CDATA[<p>Видимо никогда не клонировал такие массивы, или не замечал. <br />Но всегда предполагал что Clone создаёт полную копию массива, во втором MsgBox судя по справке должно оставаться &quot;22&quot;?<br />У меня &quot;33&quot;.<br /></p><div class="codebox"><pre><code>Arr1 := [[11, 22]]

MsgBox % Arr1[1][2] 

Arr2 := Arr1.Clone()
Arr2[1][2] := 33

MsgBox % Arr1[1][2]</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2020-04-14T18:34:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139026#p139026</id>
		</entry>
</feed>
