Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

bind / context / refinement headaches

 [1/3] from: koopmans:itr:ing:nl at: 25-Oct-2001 14:26


Please take a look at this: a: use [ myself ] [myself: func [ a /b /local c] [ probe b ; c now contains the function signature of myself c: first :myself ;make sure we can find our values (you'd say) bind c 'b ;get the value of first c = a probe get/any first c ;same for /b ;goes wrong? probe get/any second c ] ] What happens here? The last get/any goes wrong? Says: b is not defined in this context --Maarten

 [2/3] from: rotenca::telvia::it at: 25-Oct-2001 18:27


Refinement are not binded. Change them to word before binding with something like: parse c [any [h: refinement! (change h to-word first h) | skip]] --- Ciao Romano

 [3/3] from: cyphre:seznam:cz at: 25-Oct-2001 19:08


what about: a: use [ myself ][myself: func [ a /b /local c] [ probe b ; c now contains the function signature of myself c: first :myself ;make sure we can find our values (you'd say) bind c 'b ;get the value of first c = a probe get/any first c ;same for /b probe get bind to-word second c 'c ] ] regards Cyphre