Re: Question concerning object-oriented programming



In article <56dbfe0a-4ef7-41f8-8155-273c49cfc71f@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, spinoza1111@xxxxxxxxx says...

I have the standard that "all methods, that do not return a value,
shall return bool true or false, true on success, false on failure. If
they think they always succeed or are at a current stage of
implementation stubs, they may return truth".

This doesn't necessarily provide a useful consistency as it seems to suggest that methods that do return a value are
either always successful, or that there is always some value they can return that signifies failure. This will not be
the case if the method is a function with a domain covering the entire space of the type to be returned.

Mike
.



Relevant Pages

  • Re: A simple parser
    ... success, EXIT_FAILURE for failure. ... indicate *success* to the calling environment. ... It's often possible to define return values other than the standard ... Other error codes could be syntax error in ...
    (comp.lang.c)
  • Re: Question concerning object-oriented programming
    ... shall return bool true or false, true on success, false on failure. ... implementation stubs, they may return truth". ... or that there is always some value they can return that signifies failure. ...
    (comp.programming)
  • Re: indication
    ... This value is intended to be checked by the host environment to determine the outcome of the program run. ... There's also EXIT_FAILURE, and the two are the only values standard knows about, i.e. the only portable values to return to the environment. ... "success", ... means "failure" -- and these three ...
    (comp.lang.c)
  • Hard Disk Not Mounting
    ... I want to port WinCE ... -USBD:OpenPipe success, hPipe = D039E210 ... HidParse: 'Preparing to Allocate memory ... DEVICQueuedPipe::CheckForDoneTransfers - failure on TD 0xd05858a0, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: (Kinda) O/T: The Varieties Of Rooting Experience
    ... Koubek on his first rubber (was 2-4 in the fifth until Koubek choked the break ... series (he already gave the surprise winning his #2 vs #1 rubber against ... Failure was mourned, but in a low-key, philosophical tone, as ... Occasional success was unspeakably sweet, ...
    (rec.sport.tennis)