On Wed, Nov 26, 2008 at 9:20 AM, Jarrett Billingsley
<[EMAIL PROTECTED]> wrote:
> On Wed, Nov 26, 2008 at 9:06 AM, Kagamin <[EMAIL PROTECTED]> 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 ;)

Reply via email to