using a typedefed variable with library classes
    Christopher Wright 
    dhasenan at gmail.com
       
    Thu Jan 15 16:35:02 PST 2009
    
    
  
Charles Hixson wrote:
> A) Yes, it works the way that you say.  This damages it's utility.
> B) I'm replying to a question as to how typedef could reasonably be 
> extended.
The point of a typedef is to provide additional type safety. This would 
not exist if you could implicitly cast back and forth. Unless you want 
an implicit cast from a typedef type to the base type, and not the 
reverse -- that might be reasonable (I can't immediately see any issues 
with it).
    
    
More information about the Digitalmars-d-learn
mailing list