[Gtk-sharp-list] Generating returns instead of out params
25 Feb 2003 23:02:40 -0600
On Tue, 2003-02-25 at 15:11, firstname.lastname@example.org wrote:
> I think that all Iters (I know TextIter and TreeIter on the models) must
> be returned by the methods that create them and not in an out parameter.
Then add a customization. That's what the .custom files are for, and
it's an easy change.
> Another thing that I see in the iterators is that are implemented as
> structs and it is much more efficient to use objects because using out
> parameters are slow than using references (objects).
The iters should probably be implemented as Opaque types. Marshaling and
demarshaling those structs isn't necessary as we won't be manipulating
them on the managed side.
> For finish with the iterators I waht to remark that they must implement
> IEnumerator interface and must have all the code for moving around the
> widget they depend...
Again, a customization. This is certainly not something the generator
is going to manage. It will be great to have Gtk# doing very .Net-like
things like this. However, we still have a lot of cleanup to do in the
generating binding, so don't expect this kind of stuff to happen very
soon unless someone steps forward and contributes it.
Mike Kestner <email@example.com>