Trying to understand a simple piece of code: dmd barray

Dibyendu Majumdar mobile at majumdar.org.uk
Sat Mar 7 12:05:39 UTC 2020


Hi,

I am trying to understand 
https://github.com/dlang/dmd/blob/master/src/dmd/backend/barray.d.

Two questions:

1. What does this mean and why is it needed?

line 95: alias array this;

2. The struct has no property called length - but this is 
referenced. Where does this come from?

Thank you

Regards


More information about the Digitalmars-d-learn mailing list