REBOL 3.0

?? [a b c] - Probe multiple words (for debugging)

Carl Sassenrath, CTO
REBOL Technologies
26-Mar-2009 0:27 GMT

Article #0181
Main page || Index || Prior Article [0180] || Next Article [0182] || Post Comments || Send feedback

I'm not sure I posted a note on this where people can see it... so I'll post it here.

In R3, the ?? function now allows blocks.

As you know, ?? is quite useful for debugging because it prints not only a molded value, but the variable word:

name: "Neo"
?? name
name: "Neo"

Using it on a block:

name: "Neo"
age: 32
file: %morpheus.r

?? [name age file]
name: "Neo"  age: 32  file: %morpheus.r

It's handy not only because you can easily see multiple values, but also because it's just one line, and you can easily comment it out later.

;?? [name age file]

A small thing, but I use it often. That's why I wanted to note it.

Post Comments

REBOL 3.0
Updated 24-Apr-2024 - Edit - Copyright REBOL Technologies - REBOL.net