macros?

From: Joel Reymont <joelr1_at_gmail.com>
Date: Wed, 14 Jan 2009 13:20:43 +0000

Assuming I have

: CSTR ( -- n ) BL WORD COUNT TUCK 0 DO COUNT C, LOOP DROP 0 C, ;
: ZSTR ( -- ) CSTR DROP ;

...
HERE EQU .strings
...
HERE EQU .dlopen
...

and I need to do a whole lot of this

HERE .strings - .dlopen ! ZSTR _dlopen

Can I create a word that would allow me to write

STR _dlopen

instead of the HERE .strings - ... bit?

I guess it boils down to fetching the address of a word using a string
and I don't know if that can be done.

        Thanks in advance, Joel

---
http://twitter.com/wagerlabs
----------------------------------------------------------------------
sftalk_at_forth.com      The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users.  For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Wed Jan 14 2009 - 05:21:09 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.