Re: switch: break or return 0.

From: André Pönitz (poenitz_at_gmx.net)
Date: 01/16/04


Date: Fri, 16 Jan 2004 10:24:18 +0000 (UTC)

Legion <Legion@peoplepc.com> wrote:
> Mabey this explanation might work...
>
> break could mean "switch, you are done now", while return 0 could mean
> "switch, you will present a zero to whomever just asked you for a value this
> time".
>
> Any errors in the above statement anyone?

Sure. 'return' leaves the function, not just a single switch or loop.

Andre'

PS:

> | "thides" <swatts@globalserve.net> wrote:
> |
> | Please don't top-post.



Relevant Pages

  • Re: Tech: Bally Lamp Driver Operation
    ... which the lamp status is upgraded and it does it again. ... Just after the zero crossing, the MPU sends all 15 sets of data, one ...  I am guessing the switch matrix ... interrupt every time the 43v reaches the zero crossing. ...
    (rec.games.pinball)
  • Re: Word is adding zeros in front of numbers
    ... achieve that outcome using switch codes - it seems that I must sacrifice one ... for which the data source reports a zero are ommitted in the merged document. ... Second, result of the formula is a two digit number, e.g. 59. ... "Anne Troy" wrote: ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Quest for the simplest zero voltage switching
    ... cycle input to a zero voltage switching controller chip. ... controller chip would then control the Triac swiching the load. ... As the zero cross switch only switched on zero ... need to use one comparitor to detect the zero crossing. ...
    (sci.electronics.design)
  • Re: Word is adding zeros in front of numbers
    ... > Hi Anne. ... > achieve that outcome using switch codes - it seems that I must sacrifice ... but no commas are present. ... > which a zero is entered in the spreadsheet. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Mori Seiki SL-20
    ... > How do you referance out a Mori Seiki SL-20? ... If you have an overtravel alarm because the machine is on the hard limit ... while jogging off of the switch. ... be able to select zero return mode and zero return as normal. ...
    (alt.machines.cnc)