Some quick questions
    Carlos Santander 
    csantander619 at gmail.com
       
    Thu Aug  9 06:03:57 PDT 2007
    
    
  
Márcio Faustino escribió:
> 
> Another question, why pointers to structs are automatically dereferenced 
> when accessing members, but I cannot use them in "with" statements? For 
> example:
> 
> struct S {
>     int i;
>     char c;
> }
> 
> S s;
> S* ps = &s;
> 
> with (s) {}
> with (*ps) {}    // Would also be nice if I could do: with (ps)
Good question. It has been in the issue database for a while now 
(http://d.puremagic.com/issues/show_bug.cgi?id=658), but Walter hasn't said 
anything about it.
-- 
Carlos Santander Bernal
    
    
More information about the Digitalmars-d-learn
mailing list