[S] enclosing commands in braces { }

eric.gibson@pharma.Novartis.com
Wed, 21 Oct 1998 13:26:35 -0400


Dear colleagues,

A few days ago someone posted a "helpful hint"
that enclosing a block of commands in braces and then
pasting into the commands window results in faster processing.

i.e. pasting

function1( )
function2( )
function3( )

is slower than pasting

{function1( )
function2( )
function3( )}

I have also found this to be true and have been "bracing"
every block of code that I paste into the commands
window prior to pasting it.

Can someone explain why this is faster and whether or not
it is a good idea for me to be "bracing" everything prior
to pasting?

I operate in the windows NT environment and I use the
Wordpad as an editor, copying blocks of S code from it and
pasting them into the commands window.
I apologize if this is a dumb question with an obvious answer.
Perhaps someone can give me a page number to look at
in the Splus 4.0 manuals, or a page number in V&R (old edition).

Eric Gibson, Ph.D.
Novartis Pharmaceuticals
The opinions expressed herein are those of Eric Gibson and
in no way represent Novartis Pharmaceuticals.
eric.gibson@pharma.novartis.com

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news