[Prev][Next][Index][Thread]
C++ Templates used like Dylan Macros
-
To: info-dylan@ai.mit.edu
-
Subject: C++ Templates used like Dylan Macros
-
From: Hugh Greene <q@tardis.ed.ac.uk>
-
Date: Tue, 28 Mar 2000 06:15:02 -0500 (EST)
-
Organization: Division of Informatics, The University of Edinburgh
-
Xref: traf.lcs.mit.edu comp.lang.c++:466683 comp.lang.dylan:11760
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: