07.03.2020 15:05, Dibyendu Majumdar пишет:
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;

This means that `array` can be used instead of `this`
2. The struct has no property called length - but this is referenced. Where does this come from?
it comes from `array` being alias for `this`, see above

Thank you

Regards

Reply via email to