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(current.data))
> return res;
>
> What other statement types can you generalized use of auto like this to?
>
Sadly,
downs Wrote:
> Justin Johansson wrote:
> > Daniel Keep Wrote:
> >
> > Just now I've written a bit of CS101 play around code (shown below) for
> > constructing a
> > singly-linked list of numbers (Conslist idiom). As the code seems to work,
> > it looks like
> > I've cut my first teeth on "D me
Justin Johansson wrote:
> Daniel Keep Wrote:
>
>> Justin Johansson wrote:
>>> There was mention** on the general discussion group that the D
>>> foreach_reverse
>>> language construct could be replaced (emulated?) with a (D) meta-program.
>>>
>>> ** "Even a novice programmer can write a meta-prog
Daniel Keep Wrote:
> Justin Johansson wrote:
> > There was mention** on the general discussion group that the D
> > foreach_reverse
> > language construct could be replaced (emulated?) with a (D) meta-program.
> >
> > ** "Even a novice programmer can write a meta-program to replace
> > foreach_r
Justin Johansson wrote:
> There was mention** on the general discussion group that the D foreach_reverse
> language construct could be replaced (emulated?) with a (D) meta-program.
>
> ** "Even a novice programmer can write a meta-program to replace
> foreach_reverse without any runtime performan
There was mention** on the general discussion group that the D foreach_reverse
language construct could be replaced (emulated?) with a (D) meta-program.
** "Even a novice programmer can write a meta-program to replace
foreach_reverse without any runtime performance hit."
http://www.digitalmar