DMD 1.037 and 2.020 releases

Jarrett Billingsley jarrett.billingsley at gmail.com
Wed Nov 26 06:20:52 PST 2008


On Wed, Nov 26, 2008 at 9:06 AM, Kagamin <spam at here.lot> wrote:
>> - Added range support to foreach statement. What is this?
> Good question, because what is called foreach range statement was implemented long ago.

It's the ability to use foreach on the new ranges (see std.range).

> I'm affraid, this breaks my resource parser
>
> struct ResourceTable
> {
>        ushort Shift; //alignment shift count
>        ResourceType* FirstType()
>        {
>                return cast(ResourceType*)(this+1);
>        }
> }

return cast(ResourceType)(&this + 1);


More information about the Digitalmars-d-announce mailing list