j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Is there a word that can tell me the name of the current word that is executing?
I want something like this:
: myword obtainWord ;
obtainWord would somehow return "myword". Any tips would be great.
No, I don't think this is really possible because of the way in which Forth works (at least I ended up using a different solution for the debugger anyway).
Is there a reason that you're not using the in-built debugger for this? I'm fairly sure it would make your life much easier.
I'm making code that will associate a value with a function name and will store both in a table. Thank you Mark and Stefan for helping.
Programmingkid wrote:
Is there a reason that you're not using the in-built debugger for this? I'm fairly sure it would make your life much easier.
I'm making code that will associate a value with a function name and will store both in a table. Thank you Mark and Stefan for helping.
It sounds as if you're working with Forth at quite a low level. Perhaps you should consider breaking the task down into small chunks and then posting patches to the list for feedback? Then people can offer more guidance to help you.
ATB,
Mark.