Getting started - D meta-program question

downs default_357-line at
Wed Oct 7 01:41:11 PDT 2009

Justin Johansson wrote:
> Your code as below, using auto to declare a temporary var in an if statement, ahh, nice,
> didn't know that.
>          if (auto res = dg(
>             return res;
> What other statement types can you generalized use of auto like this to?

Sadly, it's an if-specific syntax.

> Thank you for taking the time downs,
> -- Justin


More information about the Digitalmars-d-learn mailing list