Re: Pointer indirections

2021-05-04 Thread Ali Çehreli via Digitalmars-d-learn
On 5/4/21 3:06 PM, Imperatorn wrote: >> Is there any limitation as to the number of pointer indirections? No. >> I have a construct: >>a.b.c.d = x; >> where all the variables are pointers to struct (the same struct). >> >> This fails with 'Access V

Re: Pointer indirections

2021-05-04 Thread Imperatorn via Digitalmars-d-learn
On Tuesday, 4 May 2021 at 21:16:10 UTC, DLearner wrote: 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 chang

Pointer indirections

2021-05-04 Thread DLearner via Digitalmars-d-learn
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 see