[MLton-devel] FFI real as float? Also a note to Anoq.

Stephen Weeks MLton@mlton.org
Thu, 24 Jul 2003 10:58:45 -0700


> Thanks to your attention to my requests and most recently that new
> experimental release I was able to get my first MLton OpenGL window up
> tonight, which makes me feel quite confident about the future of this
> porting project (and 100x more enthusiastic).

Excellent!

> I won't give this my full attention for another week or two ...

No problem.  My help will be pretty sparse over the next 4 weeks, with
3 trips and a move going on.

> Is it possible to pass a float rather than a double from SML to C without
> writing a C wrapper or C land casting function?

Not right now.  We plan to support the Real32 structure and have
implemented some of the infrastructure to do so, but it's not there
yet.  My guess is that it's a couple of months off.  If it would be a
sufficient stopgap, we might be able to roll together the following
module in the interim.

structure Real32:
   sig
      type real

      val toLarge: real -> LargeReal.real
      val fromLarge: IEEEReal.rounding_mode -> LargeReal.real -> real
   end

> As an aside to Anoq, I'm looking forward to that MinGW port and also your
> SDL library being updated!!

BTW, Anoq is on MLton-user (the list of MLton users) but not on
MLton-devel (the list of developers and few others), so I've cc'ed him
on this mail.

I'm looking forward to writing some OpenGL code!



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel