From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_50,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c949,a0b5ae1c26aae4ca X-Google-Attributes: gid10c949,public X-Google-Thread: 109fba,a0b5ae1c26aae4ca X-Google-Attributes: gid109fba,public X-Google-Thread: fdb77,a0b5ae1c26aae4ca X-Google-Attributes: gidfdb77,public X-Google-Thread: f6290,a0b5ae1c26aae4ca X-Google-Attributes: gidf6290,public X-Google-Thread: 103376,a0b5ae1c26aae4ca X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,a0b5ae1c26aae4ca X-Google-Attributes: gid1014db,public X-Google-Thread: 10d15b,a0b5ae1c26aae4ca X-Google-Attributes: gid10d15b,public X-Google-Thread: 114917,a0b5ae1c26aae4ca X-Google-Attributes: gid114917,public From: Dileep Krishna Subject: Re: Money wanted Date: 1996/12/29 Message-ID: <32C6B35B.1D58@myna.com>#1/1 X-Deja-AN: 206603240 references: <32BFDC0E.79BB@solutions.mb.ca> <32C15269.2481304F@seahunt.imat.com> <32c1bb07.1770350@news.2sprint.net> <32C1ECEF.32B8@pacbell.net> <59t5l6$kes@camel2.mindspring.com> content-type: text/plain; charset=us-ascii mime-version: 1.0 newsgroups: comp.lang.ada,comp.lang.asm.x86,comp.lang.basic.misc,comp.lang.c,comp.lang.c++,comp.lang.clipper,comp.lang.cobol,comp.lang.java.advocacy,comp.lang.java.api,comp.lang.java.misc,comp.lang.java.programmer,comp.lang.javascript,comp.lang.pascal.borland,comp.lang.pascal.delphi.components.misc,comp.lang.pascal.delphi.databases,comp.lang.pascal.delphi.misc,comp.lang.perl.misc,comp.lang.smalltalk,comp.lang.tcl,comp.mail.eudora.ms-windows,comp.mail.sendmail,comp.multimedia,comp.music.midi,comp.object,comp.org.eff.ta x-mailer: Mozilla 2.01 (Win16; I) Date: 1996-12-29T00:00:00+00:00 List-Id: My two cents in this spirited discussion on the merits of various programming languages... Another approach is to use Java. Here the answer can be done in one line: government.collectUI(); // UI is unemployment insurance, not User Int. where government is declared as: Government government = new Government (country); // // Country is your choice. If your country doesn't support this // interface, you won't compile!!! :-) Hi Dennis: In response to your posting I felt duty bound as a fellow programmer to point out a simple (but IMHO fatal!) but in your design (though I must laud your commitment to good programming practices, I mean who in their right sense would use a goto). Right after sun-down you go back to finding empty coffee cup and a busy street. This would be at night of course and in several places a busy street at night is just a place to get shot or knifed. So there should be a pause before the > Until Hell(FrozenOver) line like this: wait(Till morning); Note the lack of a poll that allows the person to actually sleep instead of looking out the window each second to see if it is light yet! ( I mean, is this program slick or what!). Dennis Janssen wrote: > Program Make_Money; > > Uses > Nothing; > > begin > Repeat > Find(EmptyCoffeeCup); > Find(BusyStreet); > Repeat > Sit(MiddleOfStreet) > Until Sun(Down) > Until Hell(FrozenOver) > end. > -- Dileep Krishna E-mail: dkrishna@myna.com