To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.org.ca.rtltorontoOpen lugnet.org.ca.rtltoronto in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Organizations / Canada / rtlToronto / 3619
3618  |  3620
Subject: 
Re: Blue screen of death
Newsgroups: 
lugnet.org.ca.rtltoronto
Date: 
Thu, 14 Feb 2002 20:17:43 GMT
Viewed: 
442 times
  
Trevyn Watson wrote:

variable++ is probably even better for a simple increment (variable--
for decrement). Of course, the compiler may recognize this and translate
"++" and "+=1" as the same.

Well if its a good compiler,

v = v + 1;
v += 1;
v++;
v -= -1;
s = 1; v += s;

would all be equivalent.

Derek



Message has 1 Reply:
  Re: Blue screen of death
 
Derek Raycraft wrote: > (...) Well, NQC isn't. I dont think it optimises code like that. (23 years ago, 15-Feb-02, to lugnet.org.ca.rtltoronto)

Message is in Reply To:
  Re: Blue screen of death
 
variable++ is probably even better for a simple increment (variable-- for decrement). Of course, the compiler may recognize this and translate "++" and "+=1" as the same. (...) (23 years ago, 14-Feb-02, to lugnet.org.ca.rtltoronto)

11 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR