_aApply.../opApply() return type: int or size_t?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Apr 30 12:10:09 PDT 2011


On 4/30/11 12:51 PM, Walter Bright wrote:
> On 4/29/2011 5:02 PM, David Nadlinger wrote:
>> What should the _aApply... runtime functions, or in general, opApply()
>> return?
>> According to the current runtime implementation and
>> http://www.digitalmars.com/d/2.0/statement.html, the return type
>> should be int,
>> but DMD expects Type::tindex (i.e. size_t) in
>> ForeachStatement::semantic().
>
>
> int

I think he was surprised that the current implementation returns size_t.

Andrei


More information about the Digitalmars-d mailing list