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

[REBOL] name of var passed to func

From: mikew127::hotmail::com at: 2-Dec-2000 14:44

I'm trying to set a quick debug function that I can throw in where ever I'm having trouble. first I have this:
>> x: 5
== 5
>> print join 'x join " = " x
x = 5 then I wrote:
>> debug: func [a b] [print join a join " = " b] >> debug 'x x
x = 5 All well and good but the key word here is quick and I type slow. What I want is: debug x I write:
>> debug: func [a] [print join 'a join " = " a] >> debug x
a = 5 How do I get 'x out of a? This may not seem like much until you see the difference between: debug some_really_long_variable_name and debug 'some_really_long_variable_name some_really_long_variable_name -bobo _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download :