Wiki
Show
Ignore:
Timestamp:
04/16/09 22:18:35 (3 years ago)
Author:
Chuck.Esterbrook
Message:

Introduce .typeOf as a cross platform means of getting the type of an object.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/HowTo/200-MakeAClassHierarchy.cobra

    r1983 r2019  
    101101        body 
    102102            sb = StringBuilder() 
    103             sb.append('[.getType.name]([_serialNum]')  # example: 'Foo(1001)' 
     103            sb.append('[.typeOf.name]([_serialNum]')  # example: 'Foo(1001)' 
    104104            .buildString(sb)  # so subclasses can add their fields 
    105105            sb.append(')')