Wiki

Changes between Version 2 and Version 3 of MemberModifier

Show
Ignore:
Timestamp:
01/24/13 13:04:32 (12 years ago)
Author:
pyros2097
Comment:

Attributes

Legend:

Unmodified
Added
Removed
Modified
  • MemberModifier

    v2 v3  
    2020    pass 
    2121}}} 
     22 
     23You can add attributes to classes and functions and variables also properties 
     24e.g. In GTK 
     25{{{ 
     26#!cobra 
     27class HasAnAttribute 
     28  has TreeNode(listOnly=true) 
     29 
     30  var name is String 
     31      has TreeNodeValue(column=0) 
     32 
     33  def doSomething is protected, override has STAThread 
     34    pass 
     35}}} 
     36 
     37Usually we need to indent the code for the attribute