logo       

Re: Adapter Pattern in SmallTalk: msg#00178

lang.smalltalk.squeak.beginners

Subject: Re: Adapter Pattern in SmallTalk


Thank you very much.
I will make some exercise with smalltalk and come back to disturb you later
probably ... :$
Thanks again.


Conrad Taylor wrote:
>
> Hi, if you're only interested in converting the Java code to Smalltalk, I
> would simple take one class at a time. For example, using the Glass
> class:
> Object subclass: #Glass
> instanceVariableNames: ''
> classVariableNames: ''
> poolDictionaries: ''
> category: 'Adapter-Example'
>
>
> instance methods '*initialize-release'*
>
> initialize
> content := 0.0
>
> instance methods '*accessing**' protocol*
>
> content: anObject
> content := anObject
>
> class methods '*class initialization' protocol*
> *
> *
> *new*
> * ^super new initialize*
> *
> *
> Good luck,
>
> -Conrad
>
>

--
View this message in context:
http://www.nabble.com/Adapter-Pattern-in-SmallTalk-tf4347089.html#a12386578
Sent from the Squeak - Beginners mailing list archive at Nabble.com.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise