----- Original Message -----
From: "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]>
Sent: Monday, December 27, 2004 9:16 AM
Subject: Re: [XP] New Article - BowlingForSmalltalkV
>
> Quoting aacockburn <[EMAIL PROTECTED]>:
>
>>
>>
>> --- In [EMAIL PROTECTED], Ron Jeffries
>> <[EMAIL PROTECTED]> wrote:
>> >
>> > You're talking about become:? I was taught that to use that you had
>> > to get written permission from Alan Kay. :)
>> >
>>
>> I've never used it, for essentially that reason. But
>> things 'becoming' other types of things is so normal and common in
>> business ('becoming' an AmX gold card member, a Platinum level
>> frequent flyer, etc.) that I'm increasingly tempted to play with it
>> as though it were standard issue business rule.
>>
>>
>
> To me, those examples seem more like turning on account options, rather
> than
> recreating/reinstantiating the account. Does the "become" feature create
> a new
> instance of the object, or does it rework the innards of the existing
> object?
In Python, you do the equivalent action by assigning a different
class object to the __class__ identifier in the instance. I presume
that Smalltalk does something similar. It's a neat feature, and it
does make some design patterns easier; I believe state is one of
them.
John Roth
>
> Gary Brown
>
>>
>>
>>
>> To Post a message, send it to: [EMAIL PROTECTED]
>>
>> To Unsubscribe, send a blank message to:
>> [EMAIL PROTECTED]
>>
>> ad-free courtesy of objectmentor.com
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>
>
>
>
>
> To Post a message, send it to: [EMAIL PROTECTED]
>
> To Unsubscribe, send a blank message to:
> [EMAIL PROTECTED]
>
> ad-free courtesy of objectmentor.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
To Post a message, send it to: [EMAIL PROTECTED]
To Unsubscribe, send a blank message to: [EMAIL PROTECTED]
ad-free courtesy of objectmentor.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/extremeprogramming/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/