Let me add this one ...
>> x: 5
== 5
>> ?? 5
(integer): 5
== 5
>> ?? x
x (integer): 5
== 5
>> source ??
??: func [
{
Prints a variable name followed by its type and molded value. (for debugging)
*PATCHED*
(iho) added type output
}
'name
][
print either word? :name [
either value? name [
rejoin [name " (" type? get name "): " mold name: get name]
] [
rejoin [name " (no value)"]
]
] [
rejoin ["(" type? :name "): " mold :name]
]
:name
]
>>
hope that helps,
Ingo
Once upon a time Andrew Martin spoketh thus:
> > I'm trying to set a quick debug function that I can throw in where ever
> I'm having trouble.
>
> >> x: 5
> == 5
> >> help x
> X is an integer of value: 5
> >> ? x
> X is an integer of value: 5
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.