Why Templates?
    Matthias Spycher 
    matthias at coware.com
       
    Mon Mar  6 18:39:36 PST 2006
    
    
  
Don Clugston wrote:
> Clearly C# does it a lot better than Java does. Java generics seem to be 
> 100% syntactic sugar.
Don't forget that a dynamic compiler can do anything at runtime if the 
byte-code carries forward enough info about the original source -- class 
files are extensible. I have seen anonymous local classes reduced to 
simple functions. With decent escape analysis, allocation on the stack 
is possible for small value classes. Research on this topic, IMHO, has 
only scratched the surface.
    
    
More information about the Digitalmars-d
mailing list