home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8605 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.9 KB  |  59 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!caen!destroyer!ubc-cs!yogi
  3. From: yogi@cs.ubc.ca (Yossi Gil)
  4. Subject: Re: A batch programming contest for you
  5. Message-ID: <1992Aug18.213600.27969@cs.ubc.ca>
  6. Sender: usenet@cs.ubc.ca (Usenet News)
  7. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  8. References: <1992Aug18.052017.3758@uwasa.fi>
  9. Date: Tue, 18 Aug 92 21:36:00 GMT
  10. Lines: 47
  11.  
  12. ts@uwasa.fi (Timo Salmi) writes:
  13.  
  14. >next version of TSBAT. But I thought we could for a change try a
  15. >programming contest just for everyone's enjoyment. And who knows
  16. >what useful batch programming ideas might pop up in the process.
  17.  
  18. Don't know about useful, but interesting... Well, how about the self
  19. printing batch program that I posted to alt.hackers some time ago:
  20.  
  21. SELFPRNT.BAT:
  22.     Bad command or file name
  23.  
  24. It is particularly nice since:
  25.  
  26.     a. It can be made arbitrarily long
  27.     b. Its existence doesn't follow from the recursion theorem.  
  28.  
  29. The recursion theorem states that any programming language with
  30. very minimal features: increment, pairing, if, goto's, etc. has a
  31. self-printing program. DOS batch programming is not a language in
  32. this respect.  Is it a programming language at all?.
  33.  
  34. And yet another teaser: The above batch file doesn't self print
  35. on 4DOS! 
  36.  
  37.  
  38.  
  39.     
  40.  
  41.     
  42.      
  43.  
  44. >Please post your potential suggestions and solutions in here for
  45. >everyone to see. 
  46.  
  47. >   All the best, Timo
  48.  
  49. >..................................................................
  50. >Prof. Timo Salmi
  51. >Moderating at garbo.uwasa.fi anonymous FTP archives 128.214.87.1
  52. >Faculty of Accounting & Industrial Management; University of Vaasa
  53. >Internet: ts@uwasa.fi Bitnet: salmi@finfun   ; SF-65101, Finland
  54. --
  55. Joseph (Yossi) Gil                 {alberta,uw-beaver,uunet}!ubc-cs!yogi
  56. Dept. of Computer Science          yogi@cs.ubc.ca (cs.ubc.ca=137.82.8.5)
  57. 6356 Agricultural Road., Univ. of B.C.,             Tel: +1-604-822-8175
  58. Vancouver, British Columbia, V6T 1Z2, Canada.       Fax: +1-604-822-5485
  59.