DMD 1.037 and 2.020 releases
Jarrett Billingsley
jarrett.billingsley at gmail.com
Wed Nov 26 06:21:15 PST 2008
On Wed, Nov 26, 2008 at 9:20 AM, Jarrett Billingsley
<jarrett.billingsley at gmail.com> wrote:
> 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);
Erm, that's cast(ResourceType*), of course ;)
More information about the Digitalmars-d-announce
mailing list