[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Saving a class

From: Mark Carter
Subject: [Help-smalltalk] Saving a class
Date: Mon, 26 May 2008 13:28:39 +0100

I'm really new to Smalltalk. I'm running
GNU Smalltalk version 3.0.1
for OS X.

I have manages to create a class Hello:

Object subclass: #Hello
       instanceVariableNames: ''
       classVariableNames: ''
       poolDictionaries: ''
       category: ''!

"Create a method"
!Hello methodsFor: 'speaking'!
    Transcript show: 'Greetings. '!

! !

and I can import it using

FileStream fileIn: '' !

But I wondered: suppose I have a class like Hello, and I want to export it as a text file. How do I do it?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]