REBOL 3.0

Comments on: ?? [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

Post a Comment:

You can post a comment here. Keep it on-topic.

Name:

Blog id:

R3-0181


Comment:


 Note: HTML tags allowed for: b i u li ol ul font span div a p br pre tt blockquote
 
 

This is a technical blog related to the above topic. We reserve the right to remove comments that are off-topic, irrelevant links, advertisements, spams, personal attacks, politics, religion, etc.

REBOL 3.0
Updated 12-Dec-2017 - Edit - Copyright REBOL Technologies - REBOL.net