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
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
>
>
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.