Hello.
I updated Poly/ML from git (commit
aa7bea141f227ea5d7feaa849763ad53fb4147d3) and found that
mlsource/extra/CInterface/Examples/NewForeignTest.sml is broken:

> env LD_LIBRARY_PATH=. poly --script NewForeignTest.sml
(4, 4)
(5, 5)
(12345, ...)
NewForeignTest.sml:133: error: Type error in function application.
   Function: buildClosure1 :
      (int -> unit) * int conversion * unit conversion ->
        (int -> unit) closure
   Argument: (fn i => print (Int.toString i), cInt, cVoid) :
      (int -> unit) * LargeInt.int conversion * unit conversion
   Reason:
      Can't unify int (*In Basis*) with LargeInt.int (*In Basis*)
         (Different type constructors)
Found near buildClosure1 (fn i => print (... ...), cInt, cVoid)

Is LargeInt.int a default int type for FFI now?

Nick.
_______________________________________________
polyml mailing list
[email protected]
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml

Reply via email to