[nycbug-talk] Re: MSNBC on the decline of technology jobs

Jed Davis jdev
Wed Jun 22 22:03:51 EDT 2005


In article <8c50a3c305062217514d7499b9 at mail.gmail.com>,
Marc Spitzer  <mspitzer at gmail.com> wrote:
> On 6/22/05, Bob Ippolito <bob at redivi.com> wrote:
> > 
> > On Jun 22, 2005, at 3:00 PM, Marc Spitzer wrote:
> > > here I would vote for 2, gcc says 1
> > > 1: c=0
> > > 2: ++c ( c= 0+1)
> > > 3 c= c+c (c = 1+1)
> > 
> > GCC says 1 because you don't remember C syntax correctly.  =+ isn't
> > in-place addition, it is plain old assignment with a unary plus
> > operator (effectively a no-op).  If you had done += then it would've
> > been 2.
> 
> Thanks for the pointer, it has been years.

Well, =+ used to be the correct spelling of that operator, for values
of "used to" in the general vicinity of "before I was born".  The Unix
6th Ed. source (as immortalized by the Lions book) has it, among other
subtle differences from C89.


-- 
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))





More information about the talk mailing list