Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 5 and Version 6 of Cookbook/Classes

Show
Ignore:
Author:
JarrettBillingsley (IP: 67.171.66.50)
Timestamp:
06/03/09 14:17:25 (15 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Cookbook/Classes

    v5 v6  
    250250                 
    251251                foreach(base; :_bases) 
    252                         if(name in fieldsOf(base)) 
    253                                 return base.(name)(with this, vararg) 
     252                        if(local owner = findField(base, name)) 
     253                                return owner.(name)(with this, vararg) 
    254254                                 
    255255                // That's all we have to do.  There was no method found if we get here, so error.