Changes between Version 22 and Version 23 of macros


Ignore:
Timestamp:
02/16/2011 09:14:13 PM (13 years ago)
Author:
michael.gruenewald
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • macros

    v22 v23  
    4747== Applying Macros ==
    4848
     49To apply macros, just add pragmas to methods and classes. Method pragmas are added in the usual way, between the signature line and the code; class pragmas are added by placing them above the `subclass:` call in the class definition window. Examples:
     50
     51{{{
     52withAll: aNumberArray
     53<shortcuts: #with count: 3>
     54
     55        ^ self new addAll: aNumberArray
     56}}}
     57
     58{{{
     59<immutable>
     60Object subclass: #Klasse1
     61        instanceVariableNames: ''
     62        classVariableNames: ''
     63        poolDictionaries: ''
     64        category: 'Playground'
     65}}}
     66
    4967
    5068