2
GSTコマンドラインインターフェイスからクラス/メッセージコードを見るにはどうすればよいですか? 私は#inspectメッセージしか知っていませんが、コードではなく、オブジェクトの定義または要約のみが表示されます。GNU Smalltalkのイメージコードを見るには?
は
st>(Object >> #printNl) methodSourceString
'printNl [
"Print a represention of the receiver on stdout, put a new line
the Transcript (stdout the GUI is not active)"
<category: ''printing''>
Transcript showCr: self printString
]'
しかし、文字列は非自明なコードには不便することができ、二重引用符で印刷されるようにあなたは、「methodSourceString」メソッドを使用することができます:-)
ありがとう、パオロ!これはまさに私が欲しかったことです:) – Marc