From: Nick B. <Nic...@po...> - 2005-03-15 12:15:15
|
At 2005-03-14 18:18:07+0000, John Reppy writes: > 2) a protable and standard way to interface to C code. I think that > this needs to be a language extension that all implementations > agree to support (something like the Haskell FFI specification). In Python: >>> import ctypes >>> msvcrt = ctypes.cdll.msvcrt >>> msvcrt.printf('Hello, %s! The answer is %d.\n', 'World', 42) Hello, World! The answer is 42. 32 >>> I'm not really expecting SML to do as well as this, but it's something to aim for. Nick B |