why is the 'return' attribute not working?

Dennis dkorpel at gmail.com
Sun May 1 21:47:39 UTC 2022


You're not returning a pointer and you're not returning by `ref`, 
so `return` is ignored.

On Sunday, 1 May 2022 at 21:09:14 UTC, mesni wrote:
> Moreover, if you return `this.someSlice.ptr` in the return 
> method in a structure, there will also be no error.

What error do you expect?


More information about the Digitalmars-d mailing list