<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Работа с классами. __Get Подкласса.]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10878</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10878&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Работа с классами. __Get Подкласса.».]]></description>
		<lastBuildDate>Tue, 18 Aug 2015 13:54:58 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Работа с классами. __Get Подкласса.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=96577#p96577</link>
			<description><![CDATA[<p>Спасибо.</p><p>Нужно для того что бы вызывать как бы функцию у которой не надо указывать параметры.<br /></p><div class="codebox"><pre><code>Var := new MyClass

Var.ChildVar.A
Var.ChildVar.B
Var.ChildVar.C

class MyClass
{
    __New()
    {
        this.ChildVar := new this.ChildVar
    }

    Class ChildVar
    {
        __Get(var)
        {
            if var = A
                msgbox Действие 1
            if var = B
                msgbox Действие 2
            if var = C
                msgbox Действие 3
        }
    
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Tue, 18 Aug 2015 13:54:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=96577#p96577</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Работа с классами. __Get Подкласса.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=96573#p96573</link>
			<description><![CDATA[<p>А зачем вообще этот Get вам нужен?<br /></p><div class="codebox"><pre><code>A := new abc
A.d
A.sub.C

class abc
{
    __New()  {
        this.sub := new this.B
    }
; Get B
    __Get(var)
    {
        if var in d,e,f
            msgbox % var
    }

; Get C
    Class B
    {
        __Get(var)
        {
            msgbox % var
        }
    
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 18 Aug 2015 12:58:33 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=96573#p96573</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Работа с классами. __Get Подкласса.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=96569#p96569</link>
			<description><![CDATA[<div class="codebox"><pre><code>class abc
{
; Get B
    __Get(var)
    {
        msgbox % var
    }

; Get C
    Class B
    {
        __Get(var)
        {
            msgbox % var
        }
    
    }
}

A := new abc
A.B.C</code></pre></div><p>Как получить имя C, с B это просто, но с C не работает.</p>]]></description>
			<author><![CDATA[null@example.com (yalanne)]]></author>
			<pubDate>Tue, 18 Aug 2015 11:02:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=96569#p96569</guid>
		</item>
	</channel>
</rss>
