ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: Cloning into an object
by David A. Black other posts by this author
Apr 30 2005 8:29PM messages near this date
Re: Cloning into an object | Re: Installing all gems
Hi --

On Sun, 1 May 2005, Eric Mahurin wrote:

>  I read a little more about become.  It looks like it might be
>  made standard in ruby at some point.  Will it have the above
>  functionality.  Or will it do something like what I think the
>  smalltalk "become" does - change all references to the
>  destination object to point to the source object.  I really
>  don't want the reference changes because a) it seems very
>  expensive (search the object space), and b) this would cause
>  the object id to change.

I thought that was the whole point of "become".  Certainly it doesn't
make sense for references to object x to persist in being reference to
object x if object x has "become" object y.  (The idea of having this
in Ruby doesn't appeal to me, but that's my understanding of its
premise, anyway.)


David

-- 
David A. Black
dblack@wobblini.net
Thread:
Eric Mahurin
Nobu Nokada
David A. Black

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved