<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Events</title><link>https://sourceforge.net/p/asil/wiki/Events/</link><description>Recent changes to Events</description><atom:link href="https://sourceforge.net/p/asil/wiki/Events/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 16 Feb 2014 10:28:03 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/asil/wiki/Events/feed" rel="self" type="application/rss+xml"/><item><title>Events modified by Will Pittenger</title><link>https://sourceforge.net/p/asil/wiki/Events/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -24,3 +24,5 @@
 :::text
 MyCommandEvent 3
 ~~~~
+
+Please note that with [Delegates], you are declaring a type.  With events, you're declaring an instance of the event.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Pittenger</dc:creator><pubDate>Sun, 16 Feb 2014 10:28:03 -0000</pubDate><guid>https://sourceforge.neta5a4c2d523f2fdce3c53048b0b413d4470c95e68</guid></item><item><title>Events modified by Will Pittenger</title><link>https://sourceforge.net/p/asil/wiki/Events/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,6 +1,7 @@
 Like with .NET, ASIL events are based on [Delegates].  Declaring your **[event](keywords-event)** is simple.

 ~~~~
+:::text
 delegate command MyDelegateCommand var int i

 event MyDelegateCommand MyCommandEvent
@@ -9,6 +10,7 @@
 When it's time to subscribe, first declare a matching procedure, here a **[command](keywords-command)**, and then use the **[++](operator-inc)** operator.  To unsubscribe, use the **[--](operator-dec)** operator.  As you may recall, we use the **[&amp;](operator-amp)** **[operator](keywords-operator)** to obtain a delegate instance from a procedure name.

 ~~~~
+:::text
 command MatchingCommand var int i
   ' Have the command do soemething

@@ -19,5 +21,6 @@
 Now lets trigger the **[event](keywords-event)**.  Events are really arrays of delegates derived from EventType.  ASIL adds code to call each **[delegate](keywords-delegate)** in the array.  If the array is empty, nothing happens.

 ~~~~
+:::text
 MyCommandEvent 3
 ~~~~
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Pittenger</dc:creator><pubDate>Sun, 16 Feb 2014 10:27:18 -0000</pubDate><guid>https://sourceforge.netb57f8918b4b535d86a3e06502763ca39416917e4</guid></item><item><title>Events modified by Will Pittenger</title><link>https://sourceforge.net/p/asil/wiki/Events/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,4 +1,4 @@
-Like with .NET, ASIL events are based on [Delegates].  Declaring your [**event**] is simple.
+Like with .NET, ASIL events are based on [Delegates].  Declaring your **[event](keywords-event)** is simple.

 ~~~~
 delegate command MyDelegateCommand var int i
@@ -6,7 +6,7 @@
 event MyDelegateCommand MyCommandEvent
 ~~~~

-When it's time to subscribe, first declare a matching procedure, here a [**command**], and then use the [**++**] operator.  To unsubscribe, use the [**--**] operator.  As you may recall, we use the [**&amp;**] [**operator**] to obtain a delegate instance from a procedure name.
+When it's time to subscribe, first declare a matching procedure, here a **[command](keywords-command)**, and then use the **[++](operator-inc)** operator.  To unsubscribe, use the **[--](operator-dec)** operator.  As you may recall, we use the **[&amp;](operator-amp)** **[operator](keywords-operator)** to obtain a delegate instance from a procedure name.

 ~~~~
 command MatchingCommand var int i
@@ -16,7 +16,7 @@
 MyCommandEvent -- &amp;amp;MatchingCommand ' unsubscribe
 ~~~~

-Now lets trigger the [**event**].  Events are really arrays of delegates derived from EventType.  ASIL adds code to call each [**delegate**] in the array.  If the array is empty, nothing happens.
+Now lets trigger the **[event](keywords-event)**.  Events are really arrays of delegates derived from EventType.  ASIL adds code to call each **[delegate](keywords-delegate)** in the array.  If the array is empty, nothing happens.

 ~~~~
 MyCommandEvent 3
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Pittenger</dc:creator><pubDate>Fri, 14 Feb 2014 04:48:37 -0000</pubDate><guid>https://sourceforge.net147505345de8124716610f865351c3b3444f1425</guid></item><item><title>Events modified by Will Pittenger</title><link>https://sourceforge.net/p/asil/wiki/Events/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,4 +1,4 @@
-Like with .NET, ASIL events are based on [Delegates].  Declaring your event is simple.
+Like with .NET, ASIL events are based on [Delegates].  Declaring your [**event**] is simple.

 ~~~~
 delegate command MyDelegateCommand var int i
@@ -6,7 +6,7 @@
 event MyDelegateCommand MyCommandEvent
 ~~~~

-When it's time to subscribe, first declare a matching procedure, here a command, and then use the ++ operator.  To unsubscribe, use the -- operator.  As you may recall, we use the &amp; operator to obtain a delegate instance from a procedure name.
+When it's time to subscribe, first declare a matching procedure, here a [**command**], and then use the [**++**] operator.  To unsubscribe, use the [**--**] operator.  As you may recall, we use the [**&amp;**] [**operator**] to obtain a delegate instance from a procedure name.

 ~~~~
 command MatchingCommand var int i
@@ -16,7 +16,7 @@
 MyCommandEvent -- &amp;amp;MatchingCommand ' unsubscribe
 ~~~~

-Now lets trigger the event.  Events are really arrays of delegates derived from EventType.  ASIL adds code to call each delegate in the array.  If the array is empty, nothing happens.
+Now lets trigger the [**event**].  Events are really arrays of delegates derived from EventType.  ASIL adds code to call each [**delegate**] in the array.  If the array is empty, nothing happens.

 ~~~~
 MyCommandEvent 3
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Pittenger</dc:creator><pubDate>Sat, 08 Feb 2014 14:18:03 -0000</pubDate><guid>https://sourceforge.net6ac16d74baed377516ca1f390e367757c6c8b96a</guid></item><item><title>Events modified by Will Pittenger</title><link>https://sourceforge.net/p/asil/wiki/Events/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Like with .NET, ASIL events are based on &lt;a class="alink" href="/p/asil/wiki/Delegates/"&gt;[Delegates]&lt;/a&gt;.  Declaring your event is simple.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;delegate&lt;/span&gt; &lt;span class="n"&gt;command&lt;/span&gt; &lt;span class="n"&gt;MyDelegateCommand&lt;/span&gt; &lt;span class="n"&gt;var&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;

&lt;span class="n"&gt;event&lt;/span&gt; &lt;span class="n"&gt;MyDelegateCommand&lt;/span&gt; &lt;span class="n"&gt;MyCommandEvent&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;When it's time to subscribe, first declare a matching procedure, here a command, and then use the ++ operator.  To unsubscribe, use the -- operator.  As you may recall, we use the &amp;amp; operator to obtain a delegate instance from a procedure name.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;command&lt;/span&gt; &lt;span class="n"&gt;MatchingCommand&lt;/span&gt; &lt;span class="n"&gt;var&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;
  &lt;span class="err"&gt;'&lt;/span&gt; &lt;span class="n"&gt;Have&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;command&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="n"&gt;soemething&lt;/span&gt;

&lt;span class="n"&gt;MyCommandEvent&lt;/span&gt; &lt;span class="o"&gt;++&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;MatchingCommand&lt;/span&gt; &lt;span class="err"&gt;'&lt;/span&gt; &lt;span class="n"&gt;subscribe&lt;/span&gt;
&lt;span class="n"&gt;MyCommandEvent&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;MatchingCommand&lt;/span&gt; &lt;span class="err"&gt;'&lt;/span&gt; &lt;span class="n"&gt;unsubscribe&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Now lets trigger the event.  Events are really arrays of delegates derived from EventType.  ASIL adds code to call each delegate in the array.  If the array is empty, nothing happens.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;MyCommandEvent&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Pittenger</dc:creator><pubDate>Sat, 08 Feb 2014 09:30:21 -0000</pubDate><guid>https://sourceforge.netb509e236a117815b4219d77eb9e7ebde0b947c07</guid></item></channel></rss>