getAttr method
Ary Borenszweig
ary at esperanto.org.ar
Fri Feb 1 05:25:59 PST 2008
Janice Caron escribió:
> On Feb 1, 2008 9:09 AM, Guillaume Chéreau <charlie137 at gmail.com> wrote:
>> Hello, I would like to suggest an feature to the language :
>>
>> Every time we try to access a member of an object that has no such member, the compiler try to call a special method with the member name as a template parameter.
>
> I'd prefer that if I misspell a member name, the compiler should point
> out my error, and fail to compile the source, with an indication of
> the file and line number where the error occurred. (Current behaviour,
> in other words).
>
It will, only if it can't find the getAttr method.
More information about the Digitalmars-d
mailing list