Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Visual Works smalltalk でクラスを作成し、メソッド (例: リスト) を追加しましたが、ワークスペースで呼び出すと #list を理解できないというメッセージのようなエラーが表示されます。
前もって感謝します。
インスタンスではなくクラスにメッセージを送信したはずなので、最初に #new を送信する必要があります。
"Foo" のようなクラスを作成し、"bar" のようなインスタンス メソッドを追加する場合、次のように評価する必要があります。
Foo new bar