Re: Drag List Boxes

From: Rick VanNorman <rvn_at_forth.com>
Date: Mon, 06 Nov 2000 07:26:51 -0800

Hi guys,

Sorry I'm a little late to the discussion, but I was
out of town... I haven't had time yet to review the
code Mike Ghan posted, but must respond immediately
to this.

On 11/6/2000 at 10:15 AM MSmith_at_ysi.com wrote:

>First it looks like you may be ignoring the void returned by DrawInsert.
>Remember, there will be an item on the stack even if it's a void type, so :
>
>Function: DrawInsert ( handParent hLB nItem -- )
>
>should be
>
>Function: DrawInsert ( handParent hLB nItem -- void)
>

The defining word Function: has the ability to correctly compile
the first form of DrawInsert. It will *automatically* compile the
drop when DrawInsert is referenced and therefore is a true VOID
return.

I have mixed emotions about this ability. For me (and I wrote it!)
it is confusing because I have to constantly try to remember which
functions return values, instead of the simple rule "all functions
return a value". This has already been discussed here (Charles Melice
and me, mostly).

Thanks,

Rick VanNorman
Received on Mon Nov 06 2000 - 07:38:29 PST


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.