Pointer indirections

DLearner bmqazwsx123 at gmail.com
Tue May 4 21:16:10 UTC 2021


Hi

Is there any limitation as to the number of pointer indirections?

I have a construct:
    a.b.c.d = x;
where all the variables are pointers to struct (the same struct).

This fails with 'Access Violation',
but if I change the code to:

  temp = a.b.c;
  temp.d = x;

everything seems to work.

Best regards


More information about the Digitalmars-d-learn mailing list