"Georg Wrede" <georg.wr...@iki.fi> wrote in message news:gv4t8t$1r4...@digitalmars.com... > Nick Sabalausky wrote: >> Suppose (purely hypothetically) that the .NET assembly system were >> changed to allow the source for a D/C++ style of source-level template to >> be embedded into the assembly. Then they'd be able to do D/C++ style >> source-level template/code-generation. Right? > > I assume, actually presume, that would take the better part of a decade. > >> Now obviously the big problem with that is it would only be usable in >> the same language it was originally written in. > > That actually depends. Done the M$ way, it would. Done properly, it would > work in any language. But then, that would mean a rewrite of the entire > CLR, wouldn't it? >
Actually, I only intended that part of it as a lead-in to my idea about templates/generics working on an AST-level instead of source-level (D/C++ templates) or bytecode-level (C# generics).