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

[REBOL] Re: name of var passed to func

From: mike:yaunish:home at: 2-Dec-2000 9:38

At 03:48 PM 02/12/00 +0000, you wrote: Try:
>> debug: func [ 'a ] [ print [ a "=" get a ] ] >> x: 5
== 5
>> debug x
x = 5
>Ladislav- >I gave that a try and got: > > >> x: 5 >== 5 > >> debug: func [a] [print join a join " = " get a] > >> debug x >** Script Error: get expected word argument of type: any-word. >** Where: print join a join " = " > >-bob > >>Hi, >> >>debug: func [a] [print join a join " = " get a] >> >>Regards >> Ladislav >> >> >> > 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 : >>http://explorer.msn.com >> > >> > -- >> > To unsubscribe from this list, please send an email to >> > [rebol-request--rebol--com] with "unsubscribe" in the >> > subject, without the quotes. >> > >> > >> > >> >>-- >>To unsubscribe from this list, please send an email to >>[rebol-request--rebol--com] with "unsubscribe" in the >>subject, without the quotes. > >_____________________________________________________________________________________ >Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com > >-- >To unsubscribe from this list, please send an email to >[rebol-request--rebol--com] with "unsubscribe" in the subject, without the quotes.
Mike Yaunish [mike--yaunish--home--com]