Specifically this is the difference...

>> source ??
??: func [
    {Prints a variable name followed by its molded value. (for debugging)}
    'name
][
    print either word? :name [rejoin [name ": " mold name: get name]] [mold
:
name]
    :name
]
>> source probe
probe: func [
    {Prints a molded, unevaluated value and returns the same value.}
    value
][
    print mold :value :value
]
>>

So one difference is probe evaluates its argument, whereas
?? captures the argument without evaluation and attempts to
print its word along with its value. The little tick mark does in
??'s function spec grabs a value without evaluating it like normal.

A common example...

>> ?? b: 5
b:
== 5
>> probe b: 5
5
== 5
>>

As you see ?? printed out the set-word! b: and returned 5, where
probe printed 5 and returned 5.  This suprise result that happens with
?? occurs becuase it the set-word b action does not happen until after ??
has
returned its value--which is the set-word b.

There is an issue with paths! that occurs becuase they are processed
differently than regular words somehow that prevents them from being
evaluated as easily. I will leave it at that.

Have fun!

--Ryan

"[EMAIL PROTECTED]" wrote:

> I'm sorry, I made a mistake when I wrote my email.
>
> When I wrote:
> DEBUG: print myVar
>
> it was not an assignement, but I meant I was in debugging session! (my
> mistake, sorry!).
>
> However, I made some tests, and it seems functioning.
> You let me discover another rebol function: "??"
> which is the difference from "probe" and "??" (I objtain the same
> results!).
>
> Thank you for your help!
>
> --
> Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f
>
> Sponsor:
> VolaSMS, il software pi� completo per inviare e ricevere SMS dal tuo PC
>
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=276&d=14-3
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.

--

Note: When sending me email directly, always make sure to include my name
in the message, otherwise my aggressive spam filters may trash it.

Ryan Cole  *  www.iesco-dms.com  *  707-468-5400


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to