Differences
This shows you the differences between two versions of the page.
|
software:style [2010/01/07 13:16] sethk created |
software:style [2010/01/07 13:23] (current) sethk |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| class CClass | class CClass | ||
| { | { | ||
| - | CClass(void); | + | // ... |
| } | } | ||
| Line 17: | Line 17: | ||
| } | } | ||
| } | } | ||
| + | |||
| + | @interface MyObject : NSObject | ||
| + | { | ||
| + | } | ||
| + | |||
| + | // ... | ||
| + | @end | ||
| + | </code> | ||
| + | |||
| + | The only exception to this rule is for the ''do <block> while'' idiom, in which the while is placed after the closing brace: | ||
| + | <code c> | ||
| + | do | ||
| + | { | ||
| + | stmt; | ||
| + | // ... | ||
| + | } while (expr); | ||
| </code> | </code> | ||
| + | In this case the symmetry is still maintained, but an unnecessary newline after the closing brace is omitted. | ||