[retroforth] Re: RetroForth 8.0

  • From: Charles Childers <charles.childers@xxxxxxxxx>
  • To: RetroForth Mailing List <retroforth@xxxxxxxxxxxxx>
  • Date: Sun, 16 Jan 2005 08:34:40 -0500

The new FFI design is much simpler than the one in 7.x

In 7.x we have things like:

" kernel32.dll" LoadLibraryAs KERNEL32
KERNEL32 " GetStdHandle" MapFunctionAs GetStdHandle
-11 1 GetStdHandle invoke constant StdOut

In 8.0, this is replaced by:

from kernel32.dll
1 import GetStdHandle
-11 GetStdHandle constant StdOut

There's also a "cimport" word that imports functions using libc
calling conventions. Overall this feels cleaner to me. Any thoughts?

--
Charles

Other related posts: