Click here to Skip to main content
15,900,669 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralIt's my own fault really Pin
chriselst21-Jul-14 5:04
professionalchriselst21-Jul-14 5:04 
GeneralRe: It's my own fault really PinPopular
Nagy Vilmos21-Jul-14 5:07
professionalNagy Vilmos21-Jul-14 5:07 
GeneralRe: It's my own fault really Pin
Mike Hankey21-Jul-14 5:33
mveMike Hankey21-Jul-14 5:33 
GeneralRe: It's my own fault really Pin
Sander Rossel21-Jul-14 7:08
professionalSander Rossel21-Jul-14 7:08 
GeneralRe: It's my own fault really PinPopular
Phil J Pearson21-Jul-14 5:19
Phil J Pearson21-Jul-14 5:19 
GeneralRe: It's my own fault really Pin
glennPattonWork321-Jul-14 5:45
professionalglennPattonWork321-Jul-14 5:45 
GeneralRe: It's my own fault really Pin
PIEBALDconsult21-Jul-14 5:29
mvePIEBALDconsult21-Jul-14 5:29 
GeneralRe: It's my own fault really Pin
Member 419459321-Jul-14 5:36
Member 419459321-Jul-14 5:36 
I'll take a whack at it.

I am a Masm developer. I write my own runtime functions. Any API accesses are through my runtime wrappers. In my world, I preserve all used registers (and the flags if I call any system APIs), and this includes the EAX register. If you want a return value from a function, you must supply a pointer to the location to receive the return value. Each function returns a success value in a common cell called dError (use it or loose it), and ends by comparing dError to 0, thus the flags on return from the function reflect whether the function succeeded or failed - 0 or "jz Good" - non-zero or "jnz Bad".

Now, as defined by "C", TRUE is a non zero value and False is zero, just the opposite of my checks.

To get around this annomoly, I never use TRUE or FALSE, just GOOD (0) or BAD (non zero).

It all depends on your point of view. There can only be a single case of GOOD, but there can be multiple cases of BAD.

Dave.
GeneralRe: It's my own fault really Pin
Joan M21-Jul-14 6:17
professionalJoan M21-Jul-14 6:17 
GeneralRe: It's my own fault really Pin
Sander Rossel21-Jul-14 7:11
professionalSander Rossel21-Jul-14 7:11 
GeneralRe: It's my own fault really Pin
Mark_Wallace21-Jul-14 9:30
Mark_Wallace21-Jul-14 9:30 
GeneralWho Is Marking Everything As SPAM / Abusive? Pin
newton.saber21-Jul-14 2:41
newton.saber21-Jul-14 2:41 
GeneralRe: Who Is Marking Everything As SPAM / Abusive? Pin
Eddy Vluggen21-Jul-14 2:50
professionalEddy Vluggen21-Jul-14 2:50 
GeneralRe: Who Is Marking Everything As SPAM / Abusive? Pin
ZurdoDev21-Jul-14 3:47
professionalZurdoDev21-Jul-14 3:47 
GeneralRe: Who Is Marking Everything As SPAM / Abusive? Pin
Eddy Vluggen21-Jul-14 5:52
professionalEddy Vluggen21-Jul-14 5:52 
GeneralRe: Who Is Marking Everything As SPAM / Abusive? Pin
ZurdoDev21-Jul-14 5:57
professionalZurdoDev21-Jul-14 5:57 
GeneralRe: Who Is Marking Everything As SPAM / Abusive? Pin
Eddy Vluggen21-Jul-14 6:20
professionalEddy Vluggen21-Jul-14 6:20 
GeneralRe: Who Is Marking Everything As SPAM / Abusive? Pin
ZurdoDev21-Jul-14 6:57
professionalZurdoDev21-Jul-14 6:57 
GeneralRe: Who Is Marking Everything As SPAM / Abusive? Pin
OriginalGriff21-Jul-14 2:56
mveOriginalGriff21-Jul-14 2:56 
GeneralRe: Who Is Marking Everything As SPAM / Abusive? PinPopular
Kornfeld Eliyahu Peter21-Jul-14 2:59
professionalKornfeld Eliyahu Peter21-Jul-14 2:59 
GeneralRe: Who Is Marking Everything As SPAM / Abusive? Pin
OriginalGriff21-Jul-14 3:02
mveOriginalGriff21-Jul-14 3:02 
GeneralRe: Who Is Marking Everything As SPAM / Abusive? Pin
newton.saber21-Jul-14 5:39
newton.saber21-Jul-14 5:39 
GeneralRe: Who Is Marking Everything As SPAM / Abusive? Pin
Richard MacCutchan21-Jul-14 5:51
mveRichard MacCutchan21-Jul-14 5:51 
GeneralRe: Who Is Marking Everything As SPAM / Abusive? Pin
newton.saber21-Jul-14 6:44
newton.saber21-Jul-14 6:44 
GeneralRe: Who Is Marking Everything As SPAM / Abusive? Pin
Richard MacCutchan21-Jul-14 6:57
mveRichard MacCutchan21-Jul-14 6:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   492 votes