home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!caen!destroyer!ubc-cs!yogi
- From: yogi@cs.ubc.ca (Yossi Gil)
- Subject: Re: A batch programming contest for you
- Message-ID: <1992Aug18.213600.27969@cs.ubc.ca>
- Sender: usenet@cs.ubc.ca (Usenet News)
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- References: <1992Aug18.052017.3758@uwasa.fi>
- Date: Tue, 18 Aug 92 21:36:00 GMT
- Lines: 47
-
- ts@uwasa.fi (Timo Salmi) writes:
-
- >next version of TSBAT. But I thought we could for a change try a
- >programming contest just for everyone's enjoyment. And who knows
- >what useful batch programming ideas might pop up in the process.
-
- Don't know about useful, but interesting... Well, how about the self
- printing batch program that I posted to alt.hackers some time ago:
-
- SELFPRNT.BAT:
- Bad command or file name
-
- It is particularly nice since:
-
- a. It can be made arbitrarily long
- b. Its existence doesn't follow from the recursion theorem.
-
- The recursion theorem states that any programming language with
- very minimal features: increment, pairing, if, goto's, etc. has a
- self-printing program. DOS batch programming is not a language in
- this respect. Is it a programming language at all?.
-
- And yet another teaser: The above batch file doesn't self print
- on 4DOS!
-
-
-
-
-
-
-
-
- >Please post your potential suggestions and solutions in here for
- >everyone to see.
-
- > All the best, Timo
-
- >..................................................................
- >Prof. Timo Salmi
- >Moderating at garbo.uwasa.fi anonymous FTP archives 128.214.87.1
- >Faculty of Accounting & Industrial Management; University of Vaasa
- >Internet: ts@uwasa.fi Bitnet: salmi@finfun ; SF-65101, Finland
- --
- Joseph (Yossi) Gil {alberta,uw-beaver,uunet}!ubc-cs!yogi
- Dept. of Computer Science yogi@cs.ubc.ca (cs.ubc.ca=137.82.8.5)
- 6356 Agricultural Road., Univ. of B.C., Tel: +1-604-822-8175
- Vancouver, British Columbia, V6T 1Z2, Canada. Fax: +1-604-822-5485
-