Re: AKA Workaround

From: Leon Wagner <leon_at_forth.com>
Date: Tue, 24 Sep 2002 11:10:20 -0700

How to reply: Use your email client's "Reply All" function to reply to the
entire list (preferred). Use "Reply" for a private reply to the sender.
--------------------------------------------------------------------------

INTERPRETER

: AKA ( -- ) ' EMPLACE ;

TARGET

AKA THEWORD NICKNAME

> -----Original Message-----
> From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com]On Behalf
> Of Bulgrien, Dennis
> Sent: Monday, September 16, 2002 8:13 AM
> To: swiftx_at_forth.com
> Subject: [swiftx] AKA Workaround
>
>
>
> How to give a nickname to a word, that is the question.
> What do you all think of the second SwiftX CODE way, from the perspective of
> programming theory?
>
> SwiftX
> ------
>
> The conventional way of doing this is...
> : theword ( n a -- ) ... W! ;
> : nickname ( ? a -- ) theword ;
>
> A little more efficient way...
> CODE nickname ( ? a -- )
> END-CODE \ Code for nickname is theword
> : theword ( n a -- ) ... W! ;
>
> chipForth
> ---------
> AKA theword nickname
>
> Assembly
> --------
> nickname:
> theword: the-code...
> return from subroutine
>
> C
> ---------
> theword()
> { the-code...
> }
> #define nickname() theword()
> ----------------------------------------------------------------------
> swiftx_at_forth.com The SwiftX programming discussion email list
> To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
> For help with listar commands, send subject "help" to listar_at_forth.com
> Archives are located at http://www.forth.com/swiftx -- check them out!
> ----------------------------------------------------------------------
> THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.
----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
----------------------------------------------------------------------
THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.
Received on Tue Sep 24 2002 - 11:07:17 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.