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: ingo:2b1 at: 2-Dec-2000 23:58

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: