[Mono-list] binding

Paolo Molaro lupus@ximian.com
Tue, 10 Jul 2001 23:14:47 +0200


On 07/10/01 Bob Smith wrote:
> 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 think implementing them in C# right now would be better because
it could help test the interpreter (it may be awhile before
support for calling external libraries is added). There is
always time for switching to the optimized version, IMHO.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better