Wiki

Changes between Version 16 and Version 17 of MixIn

Show
Ignore:
Timestamp:
01/29/14 11:00:28 (4 years ago)
Author:
Charles
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MixIn

    v16 v17  
    5555            _name = value 
    5656 
    57    get capName 
     57    get capName 
    5858        return _name[:1].toUpper + _name[1:] 
    5959         
     
    6363    pass 
    6464 
    65 def main is shared 
    66     a = A() 
    67     assert a inherits Named 
    68     assert a.name == '' 
    69     a.name = 'arosebyanyothername' 
    70     assert a.name == 'arosebyanyothername' 
    71     assert a.capName == 'Arosebyanyothername' 
     65class B adds Named 
     66    pass 
     67 
     68class P 
     69    def main is shared 
     70        a = A() 
     71        assert a inherits Named 
     72        assert a.name == '' 
     73        a.name = 'arosebyanyothername' 
     74        assert a.name == 'arosebyanyothername' 
     75        assert a.capName == 'Arosebyanyothername' 
    7276}}} 
    7377