Develop and Download Open Source Software

Browse CVS Repository

Contents of /caraway/caraway/Example.st

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Sun Feb 5 18:17:25 2006 UTC (18 years, 2 months ago) by reno
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +5 -13 lines
rewrote shared variable definition.

1 class NewObject : Object
2 '''
3 ここからクラス概要の文字列
4 何行でも適当につなげる。'も'もok
5 '''
6
7 instanceVariableNames: 'name address mail'
8
9 classInstanceVariableNames: 'Name Address Mail'
10
11 sharedVariablesFor: 'As yet classified'
12
13 USTable := Dictionary new
14 SharedVariable := nil
15
16 methodsFor: 'accessing'
17 "以降インスタンスメソッド"
18
19 at: index put: obj
20 'メソッドコメント'
21 |obj array|
22 obj new.
23 array do: [:i| i inspect ].
24 http://localhost/index.html asString.
25 ^self at: index put: #(1 2 3) char: #<0A FF BE> dict: {'key':'value', 1:2}
26
27 perform: aSelector
28 with: firstObject
29 with: secondObject
30 "長いセレクタは同じインデントで"
31 ^self
32
33 classMethodsFor: 'instance creation'
34 "以降クラスメソッド"
35
36 from: obj
37 ^self basicNew
38
39 "クラス終了記号はない"
40
41
42
43 class EditingContext
44 category: 'EOControl'
45 "ObjCのようにしなくてもいい"

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26