home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / acorn / tech / 43 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.8 KB  |  50 lines

  1. Newsgroups: comp.sys.acorn.tech
  2. Path: sparky!uunet!comp.vuw.ac.nz!gavin
  3. From: Gavin.Flower@comp.vuw.ac.nz (Gavin Flower)
  4. Subject: Re: New Language/Compiler (ideas wanted)
  5. Nntp-Posting-Host: debretts.comp.vuw.ac.nz
  6. Message-ID: <BsyHIG.GMu@comp.vuw.ac.nz>
  7. Organization: Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
  8. Keywords: Compiler/Language
  9. Sender: news@comp.vuw.ac.nz (News Admin)
  10. References: <1195@grun.is> <1992Aug13.130618.18871@odin.diku.dk>
  11. Date: Fri, 14 Aug 1992 04:23:04 GMT
  12. Lines: 36
  13.  
  14. >orion@grun.is (Halfdan Ingvarsson) writes:
  15. >
  16. >
  17. >>Hiya folks...
  18. >
  19. >>  Erm. I was thinking of writing a (sort of :) compiler using
  20. >>my own language (a weirdo mixture of C, Pascal etc.. ) and I
  21. >>am getting a little short of ideas. 
  22. [...]
  23. >>So.. If anyone has some cool ideas or something dreamthings they'd like to
  24. >>see in a compiler I'd be glad to hear from them.
  25. [...]
  26.  
  27. A number of years ago, someone suggested a "comfrom", to match a
  28. "goto".  When it was first mentioned, it was as a joke.  However, the
  29. more I thought about it, the more it appealed...
  30.  
  31. The idea is that both ends of the goto are labeled.  This has several
  32. advantages:-
  33.  
  34. (1) At the target label, the "comefrom" clearly identifies the places
  35. from which the current label can be reached, and just how many places.
  36.  
  37. (2) Also it will help to discourage indiscriminant use of the
  38. "dreaded goto", without preventing its use in "appropiate" contexts.
  39.  
  40. (3) This would give the compiler more scope for picking up errors.
  41.  
  42.  
  43.  
  44. Gavin
  45. -- 
  46. Tomorrow's Society                              | flower_g@kosmos.wcc.govt.nz
  47.     Depends on                                   ----------------------------
  48. Today's Children  - help us raise them properly! 
  49. *******  These comments have no known correlation with dept. policy!  *******
  50.