From: <ha...@hu...> - 2007-03-13 07:23:52
|
2007/3/13, Hans H=FCbner <ha...@hu...>: > On the web page, it is descibed that > > ' mypause 'pause ! > > sets the pause hook to the word mypause. That works just fine from > immediate mode, but not from within another word. How would I achieve > the same thing from within another word? I checked the ANS specification (http://www.taygeta.com/forth/dpans.htm) and found the answer myself, ['] in a word definition does what ' does in immediate mode, so my code now reads : start-display ( -- ) init-display 0 set-display ['] refresh-display 'pause ! ; -Hans |