<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Messager pattern from Panda3D'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sun, 19 Apr 2026 06:40:38 +0000</lastBuildDate>
    <item>
      <title>chombee said on 11/Jun/2008</title>
      <link>https://snipplr.com/view/6650/messager-pattern-from-panda3d</link>
      <description>&lt;p&gt;&lt;p&gt;&lt;/p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 11 Jun 2008 19:07:39 UTC</pubDate>
      <guid>https://snipplr.com/view/6650/messager-pattern-from-panda3d</guid>
    </item>
    <item>
      <title>chombee said on 11/Jun/2008</title>
      <link>https://snipplr.com/view/6650/messager-pattern-from-panda3d</link>
      <description>&lt;p&gt;&lt;p&gt;&lt;/p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 11 Jun 2008 19:08:14 UTC</pubDate>
      <guid>https://snipplr.com/view/6650/messager-pattern-from-panda3d</guid>
    </item>
    <item>
      <title>chombee said on 15/Jun/2008</title>
      <link>https://snipplr.com/view/6650/messager-pattern-from-panda3d</link>
      <description>&lt;p&gt;&lt;p&gt;Zero|Byte showed me an alternative version of this that. Instead of mapping strings to (function, accepter&lt;em&gt;argument, sender&lt;/em&gt;argument) tuples his maps class names to to functions: http://dpaste.com/56722/&lt;/p&gt;

&lt;p&gt;When you call messager.send(...) you pass either an event class (and messager will create a new instance for you_ or an instance of an event class, message finds all functions subscribed to that class name and calls them, passing the event class as the single argument. The idea is that you create different event classes and the receiver functions use their attributes as arguments. Nice. His version doesn't allow you to give an argument when you call accept(...), but I've never found much use for that anyway. I like it.&lt;/p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 15 Jun 2008 13:40:02 UTC</pubDate>
      <guid>https://snipplr.com/view/6650/messager-pattern-from-panda3d</guid>
    </item>
  </channel>
</rss>
