Do pure functions solve the "return const" problems?

Janice Caron caron800 at googlemail.com
Sat Apr 5 14:00:31 PDT 2008


On 05/04/2008, Christopher Wright <dhasenan at gmail.com> wrote:
>  Yes, it could. You're explicitly telling it which return value you want to
> use by which is listed at the function's return value rather than an out
> parameter.

You're not getting this. If two values are being returned, the
compiler can't just throw one of them away. In the general case, it
doesn't have enough information to know what to do.



More information about the Digitalmars-d mailing list