<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Можно ли назвать класс "Array"]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=17121&amp;type=atom" />
	<updated>2022-05-12T18:30:13Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=17121</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Можно ли назвать класс "Array"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153182#p153182" />
			<content type="html"><![CDATA[<p>Данный класс я делаю сам, но когда-то столкнулся с проблемой связанной с именем класса. Не знаю какое более удобное название можно выбрать, в идеале для работы с массивами хотелось бы и иметь название класса &quot;Array&quot;, чтобы возможно было обращаться, как &quot;Array.method()&quot;.</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-05-12T18:30:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153182#p153182</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Можно ли назвать класс "Array"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153181#p153181" />
			<content type="html"><![CDATA[<p>С таким названием проблем не должно быть, но если переименовываете чужой класс, нужно сначала проверить, нет ли обращений по имени изнутри класса, в этом случае при смене названия он не будет работать. Кроме того, Array — одно из служебных слов в AHK, поэтому лучше его не использовать, чтобы не возникало путаницы.<br /></p><div class="codebox"><pre><code>obj := Array(1, 2, 3)
MsgBox, % obj[3]</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2022-05-12T18:06:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153181#p153181</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Можно ли назвать класс "Array"]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=153180#p153180" />
			<content type="html"><![CDATA[<p>Из-за какой-то проблемы мне пришлось когда-то переименовать класс в &quot;ClassArray&quot;, не помню какова была причина. Сейчас ради интереса назвал так класс и он вроде отрабатывает.<br />Есть какие-то вам известные проблемы с таким назанием?</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-05-12T17:36:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=153180#p153180</id>
		</entry>
</feed>
