![]() | ||
| Home | SwiftX Archive | SwiftForth Archive | |

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.
Received on Mon Sep 16 2002 - 08:10:31 PDT
This archive was generated by hypermail 2.2.0 : Fri Dec 05 2008 - 03:04:21 PST