On Jan 28, 2008 4:59 PM, Philip Van Hoof &lt;<a href="mailto:spam@pvanhoof.be">spam@pvanhoof.be</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br><br></div>ps. I&#39;m trying things like this without success. Studying that fixup<br>code :)<br><br><br>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;metadata&gt;<br>&nbsp;&lt;remove-node path=&quot;/api/namespace/object[@cname=&#39;TnyList&#39;]/method[@cname=&#39;foreach&#39;]&quot; /&gt;<br>
&lt;/metadata&gt;</blockquote><div><br>That method cname would probably be something like tny_list_foreach, or you could do @name=&#39;Foreach&#39;.&nbsp;&nbsp; The error is most likely due to a parameter named foreach, though, I&#39;m guessing, which could be renamed to foreach_cb or something like that to get around the current lack of generator mangling. <br>
</div><div>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I&#39;m guessing that if I want to add an &#39;implements&#39;, I do something like<br>
this to the metadata file:<br><br> &nbsp;&lt;add-node path=&quot;/api/namespace/object[@cname=&#39;TnyList&#39;]/implements/interface[@name=&#39;IList&#39;]&quot; /&gt;</blockquote><div><br>&lt;add-node path=&quot;/api/namespace/object[@cname=&#39;TnyList&#39;]&quot;&gt;&lt;implements&gt;&lt;interface name=&quot;IList&quot; /&gt;&lt;/implements&gt;&lt;/add-node&gt; <br>
</div><div>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">And then make a List.custom that implements all that IList needs (which<br>
can be done with tny&#39;s list API).</blockquote><div><br>Yep.&nbsp; You can take a look at Gtk.ListStore.&nbsp; It has an IEnumerable implementation.&nbsp; I hacked up that metadata rule above from its rule.<br><br>Mike</div></div>