Compile-time AST manipulation API

0ffh frank at frankhirsch.youknow.what.todo.net
Sun Nov 25 19:05:22 PST 2007


Dejan Lekic wrote:
> Why would anyone need this in a general-purpose, OO language, is beyond 
> me...

A few examples of what would be possible to add to any program
you have the source of, by just including an appropriate module:

  - Stack backtraces
  - Runtime statistics & profiling
  - Array access range checking
  - Integral overflow checks
  - New numeric types that behave like primitive
    types without any need for syntax overloading
  - Anything

regards, frank



More information about the Digitalmars-d mailing list