Re: eXene and openGL
Matthew Fluet <[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Organization | Toyota Technological Institute at Chicago |
| Message-ID | <[email protected]> |
Vesa Karvonen wrote: > Quoting John Reppy <jhr-kRQskCh0V2e+fvpajLlQkQ-XMD5yJDbdMReXY1tMh2IBg@public.gmane.org>: >> My understanding from talking to Matthew Fluet is that nlffi on mlton >> does not support C structs. > >>From http://mlton.org/MLNLFFI: > > "MLton's mlnlffigen does not currently support C > functions with struct or union arguments." > > However, *pointers* to structs or unions do work and it is > relatively rare for a C function to take struct or union > arguments. (I don't know whether SDL does.) Correct: one may pass *pointers* to structs and unions with MLton's nlffi. One may also allocate structs and unions and access field members of structs and unions. It is only passing structs and unions as arguments that is unsupported. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV