<div class="markdown_content"><hr />
<p><strong> <a class="alink" href="http://sourceforge.net/p/pure-data/bugs/1157">[bugs:#1157]</a> add a class method "loadbang" with A_CANT type throw error</strong></p>
<p><strong>Status:</strong> open<br />
<strong>Group:</strong> v0.45<br />
<strong>Labels:</strong> 0.46 <br />
<strong>Created:</strong> Tue Sep 23, 2014 03:10 PM UTC by Antoine Villeret<br />
<strong>Last Updated:</strong> Tue Sep 23, 2014 03:10 PM UTC<br />
<strong>Owner:</strong> Miller Puckette</p>
<p>When I make a method "loadbang" with type <code>A_CANT</code>, I always got </p>
<div class="codehilite"><pre><span class="c"># Bad arguments for message 'loadbang' to object 'mycobject'</span>
</pre></div>
<p>at loading. <br />
But the function is called.</p>
<p>A_CANT seems to work as expected for other methods.<br />
Using A_NULL instead of A_CANT for "loadbang" works but then it is exposed to user.</p>
<p>Please see <span>[1]</span> for a modified mycobject.c (from template) that remonstrates the issue.</p>
<p><span>[1]</span> : <a href="https://gist.github.com/avilleret/4e52cc3923112c5feb78" rel="nofollow">https://gist.github.com/avilleret/4e52cc3923112c5feb78</a></p>
<hr />
<p>Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to <a href="https://sourceforge.net/p/pure-data/bugs">https://sourceforge.net/p/pure-data/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/pure-data/admin/bugs/options.">https://sourceforge.net/p/pure-data/admin/bugs/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>