Proposal: IMPORT: why not define in explicit dedicaced wordlist ?

From: Charles Melice <mail_at_forthcad.com>
Date: Mon, 10 May 1999 14:14:33 +0100

Because Windows API have thousands of functions, I think it would be better
to have a explicit dedicaced wordlist (as ASSEMBLER, etc.) to hide the
imported functions.

The actual implementation generates a lot of problems and possible
confusions:

_small example_

        ONLY FORTH ALSO DEFINITIONS
        1 IMPORT: MessageBeep

        ' MessageBeep \ error: MessageBeep not found (abnormal)
        C" MessageBeep" FIND \ return 0 - not found (abnormal)
        [DEFINED] MessageBeep \ return 0 - not found (abnormal)

The problem can become more important if one library define a synonym word,
for instance imagine the function "Dup()" in any library (standard or not)
!

Why not to use a more traditional wordlist usage with IMPORT: ?

Charles

________
Charles Melice
mail_at_forthcad.com
http://www.forthcad.com

.
Received on Mon May 10 1999 - 14:14:33 PDT


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 09-Feb-2012. Archive updated nightly.