[Gtk-sharp-list] .NET bindings for Tinymail, skeleton added to repository but I still have some compilation problems

Philip Van Hoof spam at pvanhoof.be
Mon Jan 28 17:59:24 EST 2008

On Mon, 2008-01-28 at 16:51 -0600, Mike Kestner wrote:

> On Jan 28, 2008 4:41 PM, Philip Van Hoof <spam at pvanhoof.be> wrote:

> I noticed the previous errors where created by the code generator not
> coping with _func appended vfunc names in the class's structs.
> Could you file a bug report for that please?

Will do.

> I removed those from the API, now I get this list of errors (which
> looks more sane to me, but still, I wonder how to fix all this).
>         warning CS8029: Compatibility: Use -out:FILE instead of
>         --output FILE or -o FILE
>         generated/ListAdapter.cs(22,39): error CS1041: Identifier
>         expected: `foreach' is a keyword

ps. I'm trying things like this without success. Studying that fixup
code :)

<?xml version="1.0"?>
 <remove-node path="/api/namespace/object[@cname='TnyList']/method[@cname='foreach']" />

> I'll take a look at this tomorrow.  Thanks for trying it out.  Those
> both look like simple keyword mangling issues.  They just need to be
> added to the SymbolTable method that does the mangling.  You could
> file a bug for those as well if you wanted.

Okay, will do. Some of the compilation errors are about actual words
being used that generate to a C# construction that uses a C# keyword.

Might be hard to fix. Lucky I don't really need them, although having
access the the C developer's fast foreach implementation of the list
could become useful when implementing a IList with a IEnumeratable, etc.

I'm guessing that if I want to add an 'implements', I do something like
this to the metadata file:

  <add-node path="/api/namespace/object[@cname='TnyList']/implements/interface[@name='IList']" />

And then make a List.custom that implements all that IList needs (which
can be done with tny's list API).

Right? (it's a guess)

Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 

More information about the Gtk-sharp-list mailing list