[Gtk-sharp-list] Design for Indexer for GLib.List to allow [] based addressing.

Duncan Mak duncan@ximian.com
Tue, 21 Oct 2003 18:31:17 -0400


Hey Daniel!

On Tue, 2003-10-21 at 16:39, Daniel Kornhauser wrote:
> In this mail I'm going to write about the thought process that a newbie
> has to try to solve a bug (it's actually only a customization). 

I think this is really really great, it is an awesome post.

But I have one little question...

> In List.cs
> 
>         [DllImport("libglib-2.0-0.dll")]
>         static extern IntPtr g_list_nth_data (IntPtr l, uint n);
> 
>         internal override IntPtr g_list_nth_data NthData (IntPtr list, uint n)
>         {
>                 return g_list_nth_data ();
>         }

Shouldn't this say

	return g_list_nth_data (list, n);

instead?

> Conclusion:
> ===========
> 
> If you are a newbie to gtk# hacking there is plenty of resource for
> understanding gtk# you just need to be aware of them and fairly auto
> didactic.
> Always use
> 
> 	- grep
> 	- get the cvs code
> 	- monodoc 
> 	- go www.gtk.org

Amen!

This is wonderful! I'm so psyched for this!

Happy hacking!

Duncan.