[Prev][Next][Index][Thread]

C++ Templates used like Dylan Macros



I found the following article in C++ Report (March 2000, Vol 12/No 3) 
rather interesting -- dunno if anyone else will but what the hell :-). 
It's the first part of a look at a way of using C++ templates like Dylan
macros, i.e., leaning towards exploiting them for code generation, rather
than just type specialisation. 

  http://www.creport.com/html/from_pages/column_mar.shtml

(probably eventually to be archived at
  http://archive.creport.com/0003/html/from_pages/index.shtml
or
  http://archive.creport.com/200003/html/from_pages/index.shtml
guessing from their other archive pages).

It's interesting that some of the problems are similar -- unenlightening
error messages and "it takes getting used to" in particular!

C++ folks who get their heads around this will get an idea of what macros
are good for in Dylan -- they're nothing like C preprocessor macros, being
"grammar-aware".  Dylaners might get some macro design ideas and/or good
ideas for macros.

-- Hugh





Follow-Ups: