home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Education Sampler 1992 [NeXTSTEP]
/
Education_1992_Sampler.iso
/
NeXT
/
Misc
/
HigherEducationMailbox.mbox
/
Archives_provide_val_.attach
/
May_91
/
misc.367
< prev
next >
Wrap
Text File
|
1991-05-21
|
590b
|
23 lines
indent decrement negative assignment
Q: Is there a bug in indent?
A: Yes. The old C specification permitted =- as a decrement operator; the current
specification does not, and specifies that -= is the decrement operator. It appears
that indent(1) was written during the "transition" period; it (silently!) converts
=- to -=. Note that this will only occur if there's no white space between the = and
the -.
Example:
ok = -1; /* This won't get messed up */
bad=-1; /* This WILL get messed up; indent will convert to bad -= 1; */
QA367
Valid for 1.0
Not checked yet for 2.0