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 / 151
150  |  152
Subject: 
Re: 4 wheel power robot
Newsgroups: 
lugnet.org.ca.rtltoronto
Date: 
Tue, 14 Nov 2000 23:47:37 GMT
Viewed: 
674 times
  
With much patients and too much time Jeff explains:


The single = sign was my *point*; it's supposed to be
*funny*: in C you can assign inside a test, it's called
"The Last C Bug"[1], and it means that chisMagno will always
be stubborn.  I actually missed his Iain's mangling of your
name, I just happen to know how to spell it.

Jeff

[1] - It's called that, given the following code example
(which assumes you know about The Cold War, and that you
know what 'DEFCON' means:

// NORAD Defense System Code For Armageddon:

function void [2] launch_decision(int defcon) {
  if(defcon = 1) {
    launch_all_nukes();
  } else {
    maintain_peace();
  }
}


[2] - I've seen it written returning an int, but then
I thought - what's the point in returning an int from
a function with *those* kind of side-effects?

ummm, Ya..... right.. and this is supposed to convince me that NQC is
better.

now this was the good ol' days.

(Iain cover your eyes)

10 ? clr
20 ? tab(20) "ya right";
25 ? " hit any key"
30 get a$: if a$ = "" then 30
40 goto 10


Chris
Lego Walker now @
www.members.home.net/cmagno/technics/index.htm



Message is in Reply To:
  Re: 4 wheel power robot
 
(...) <SIGH> The single = sign was my *point*; it's supposed to be *funny*: in C you can assign inside a test, it's called "The Last C Bug"[1], and it means that chisMagno will always be stubborn. I actually missed his Iain's mangling of your name, (...) (24 years ago, 14-Nov-00, to lugnet.org.ca.rtltoronto)

16 Messages in This Thread:



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

Custom Search

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