Proposal: IMPORT: enhancements

From: Charles Melice <mail_at_forthcad.com>
Date: Mon, 17 May 1999 15:20:52 +0100

Because IMPORT: or FUNCTION: is used very intensively, I think some
enhancements and variations would be very welcome:

-> because we must write a lot of DROP...
-> because floats are in the Windows world today
-> because the return value can be a float...

FUNC():
---------------------------------------------------------------------
        FUNC(): UpdatePrice ( int szCategory, float Coef, int MaxElem -- bool )
                Use one int, then one float, then one int. Return int.

        FUNC(): glVertex3v ( float x, float y, float z -- )
                Use three floats and return nothing.

C-float C-NEWTYPE: REAL
C-int C-NEWTYPE: DWORD
---------------------------------------------------------------------
        C-float
        A predefined CONSTANT to define a new 'C' type FLOAT apparented.

        C-int
        A predefined CONSTANT to define a new 'C' type INT apparented.

                example:
                --------
                C-int C-NEWTYPE: HDC
                C-int C-NEWTYPE: HWND

                FUNC(): ReleaseDC ( HWND hWnd, HDC hDc -- int )

        C-double ( if possible ... )
        A predefined CONSTANT to define a new 'C' type DOUBLE apparented.

        C-NEWTYPE:
        Parse next entry and update the "C-type" wordlist, also record its
        apparented 'C' type.

..C-type
---------------------------------------------------------------------
        .C-type
        List all type-names followed be the apparented C-type (int, float..)

Regards

________
Charles Melice
mail_at_forthcad.com

.
Received on Mon May 17 1999 - 15:20:52 PDT


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

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