home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12381 < prev    next >
Encoding:
Text File  |  1992-08-15  |  2.1 KB  |  47 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
  3. From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
  4. Subject: Re: Language extension
  5. Message-ID: <1992Aug15.153009.11771@ucc.su.OZ.AU>
  6. Sender: news@ucc.su.OZ.AU
  7. Nntp-Posting-Host: extro.ucc.su.oz.au
  8. Organization: MAXTAL P/L C/- University Computing Centre, Sydney
  9. References: <memo.575428@cix.compulink.co.uk>
  10. Date: Sat, 15 Aug 1992 15:30:09 GMT
  11. Lines: 34
  12.  
  13. In article <memo.575428@cix.compulink.co.uk> vadim@cix.compulink.co.uk writes:
  14. >
  15. >While thinking about various RTTI, XRTTI and GC proposals
  16. >for C++ i've stumbled on following idea:
  17. >Many of the modern computer programs such as communication programs,
  18. >word processors, CAD systems, e-mail systems provides a means to tailor
  19. >them to match user needs by offering some kind of script language.
  20. >It just occured that the same mechanism could be provided in the
  21. >compiler.  A scripting language which could access and manipulate
  22. >compiler data structures. Such a thing will give almost unlimited
  23. >language extension possibilites and that WITHOUT need to change the
  24. >language itself.
  25. >
  26. >With souch a feauture RTTI, EXCEPTION HANDLING, GC, PRE- and POST- 
  27. >method conditions, class invariants, all become
  28. >possible without modifying the language. The stadards commetee will
  29. >simply have to agree on library interface to all these features.
  30. >
  31.  
  32.     I started writing c++front translator last week.
  33. Initialially it will translate C++ into C++ via hand written
  34. parser (written in C++). It will be upgraded to support
  35. tagged pointers, operator., etc by hand modification of the compiler
  36. source. Extensions to translation to C may be interesting.
  37. Bootstrapping to extended C++ will be tedious. But its impossible
  38. to propose a major language extension without testing it
  39. via an experimental compiler.
  40.  
  41.  
  42. -- 
  43. ;----------------------------------------------------------------------
  44.         JOHN (MAX) SKALLER,         maxtal@extro.ucc.su.oz.au
  45.     Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
  46. ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
  47.