Changes between Version 1 and Version 2 of Methods
- Timestamp:
- 11/22/10 19:58:54 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Methods
v1 v2 13 13 == Method Grammar == 14 14 {{{ 15 #!cobra 15 16 def <methodName> [as <returnType>] [is <AccessModifiers>] 16 17 [has <Attributes>] … … 27 28 28 29 {{{ 30 #!cobra 29 31 <paramName> [as [<paramDesc>] <Type>] [, ...] 30 32 }}} … … 45 47 == Example == 46 48 {{{ 49 #!cobra 47 50 def meth( a, b is String, c is out String) 48 51 c = b + "_meth"