[MLton-devel] [MLton-user] _ffi and Windows stdcall symbols

Matthew Fluet fluet@cs.cornell.edu
Fri, 18 Jul 2003 08:46:19 -0400 (EDT)


> As to how we should
> indicate the attribute at the SML source level, I propose to allow a
> sequence of attributes after the name but before the colon, as in:
>
> 	_ffi "name" <attribute>*: <ty>;
> 	_export "name" <attribute>*: <ty>;

That seems fine.

> For now, the only thing their report has inspired me to do is to
> possibly change the syntax of _ffi and _export to be a little more
> uniform.  One possibility would be to rename them like
>
> 	_import "name" <attribute>*: <ty>;
> 	_export "name" <attribute>*: <ty>;

I like the above; I think it does make the syntax a little more uniform.

> Another, which follows the Haskell report, is to use a single _ffi
> keyword, as in:
>
> 	_ffi {import|export} "name" <attribute>*: <ty>;
>
> Any thoughts on this?

That's o.k. too, although I think I prefer the former.



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel