Style question

  • Thread starter Christopher Benson-Manica
  • Start date
R

Richard Bos

Mark A. Odell said:
c:\c\hashlib>detab
DETAB copyright (c) 1989 by C.B. Falconer. Ver 1.0

usage: DETAB [tablist] <infile >outfile
If tablist is omitted a tab interval of 8 is assumed
If tablist has only one number, then that is the tab interval
If tablist contains multiple numbers, separated by spaces,
then they are assumed to be the tab points. The leftmost
column is numbered 0.
If tablist is a single 0, then tabs are not expanded
Backspaces in a line shut off tab expansion until cr

How might someone get a copy of 'detab'?

One does all the exercises in K&R 2 <g>.

Richard
 
R

Richard Bos

Christian Bau said:
I see. Well, I hate source code that doesn't use tab = four spaces :)

Myeah. Problem is, most printers hate source that doesn't assume tabs to
be eight spaces, which is far too much to be useful.

Richard
 
C

CBFalconer

Richard said:
Mark A. Odell said:
CBFalconer said:
c:\c\hashlib>detab
DETAB copyright (c) 1989 by C.B. Falconer. Ver 1.0

usage: DETAB [tablist] <infile >outfile
If tablist is omitted a tab interval of 8 is assumed
If tablist has only one number, then that is the tab interval
If tablist contains multiple numbers, separated by spaces,
then they are assumed to be the tab points. The leftmost
column is numbered 0.
If tablist is a single 0, then tabs are not expanded
Backspaces in a line shut off tab expansion until cr

How might someone get a copy of 'detab'?

One does all the exercises in K&R 2 <g>.

I suspect you are right, but I can't find it. At any rate the
above version was written in Pascal. As you can see I had no urge
to deal with the complications of backspacing.
 
R

Rob Thorpe

Christian Bau said:
I see. Well, I hate source code that doesn't use tab = four spaces :)


Well, you can hate what you like :).
There are large amounts of code out there with 4, 6 and 8 stops used
for tabs.
I have to swap between them quite frequently.
As a result I've gained a bias against the whole idea of indenting
with tabs. Since almost every editor has the capability to insert
spaces for indentation these days it seem an unnecessary irritation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,352
Latest member
DianeKulik

Latest Threads

Top