Confirmed users
699
edits
| Line 27: | Line 27: | ||
}; | }; | ||
This code defines a <code>Plugin</code> protocol. On the next three lines, the code declares two messages, <code>Init()</code> and <code>Deinit()</code>. We will describe the messages in more detail in the next section. To finish the introduction of protocols and actors, note the <code>'''child'''</code> | This code defines a <code>Plugin</code> protocol. On the next three lines, the code declares two messages, <code>Init()</code> and <code>Deinit()</code>. We will describe the messages in more detail in the next section. To finish the introduction of protocols and actors, note the <code>'''child'''</code> keyword used on the 2nd line. This keyword says that ''child'' "accepts", or "implements", the messages declared under that "child" label. That is, the parent actor can send those messages to the child, but the child cannot send those messages to the parent. | ||
== Messages == | == Messages == | ||