[Mono-list] binding

Miguel de Icaza miguel@ximian.com
10 Jul 2001 19:55:54 -0400


> I'm looking at implementing the Math class and I was wondering would it
> be better to implement it from scratch in C#, or bind it to standard C
> math functions. Each way is just as portable as the other, both I think
> will be just about the same performance, the C binding requires less
> work, and the C# way would probably be cleaner. What is the general
> consensus about binding vs codeing when it comes to making use of
> standard C libs?

I would just bind the existing C code if possible (for Decimal, you
might need to link with the GNU Multi Precission library).