this is null

ANtlord antlord92 at gmail.com
Sun Mar 10 16:23:21 UTC 2019


On Sunday, 10 March 2019 at 14:25:56 UTC, spir wrote:

> There is a typo in this instruction:
>
> T* ptr = this.list.getFisrtFreeOrAdd(memViewLen).getPtr!T();
>                         ^^
>                         rs
> (may this explain your null? the compiler should complain)
>
> diniz

Good catch! But I have the same typo within the definition of the 
method. I believe DMD screams about undefined method if it 
happens.


More information about the Digitalmars-d-learn mailing list