Some quick questions

Márcio Faustino m.faustino at no.spam.gmail.com
Thu Aug 9 05:29:36 PDT 2007


Carlos Santander wrote:
> This is normal D behavior due to its look-up rules. I'm sure someone 
> else will give you a more detailed explanation.

Didn't know that, thanks.

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)


More information about the Digitalmars-d-learn mailing list