Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!newsstand.cit.cornell.edu!portc01.blue.aol.com!news-peer.gsl.net!news.gsl.net!news.sprintlink.net!news-peer.sprintlink.net!newsfeed.telalink.net!telalink!news.fdt.net!uunet!in2.uu.net!uucp1.uu.net!world!carlg
From: carlg@world.std.com (Carl E Gundel)
Subject: Re: Type Checking-Please Read Urgent
Message-ID: <E2Jp7v.6Gw@world.std.com>
Organization: The World, Public Access Internet, Brookline, MA
X-Newsreader: TIN [version 1.2 PL2]
References: <1996Dec6.002220.152544@forest> <32A8B9E3.11BA@deep.net> <voalob7wcz1.fsf@eris.raleigh.ibm.com>
Date: Tue, 17 Dec 1996 06:40:42 GMT
Lines: 21

: > There is no direct mechanism in the language to "coarse" an
:                                                    ^^^^^^ - coerce. HTH
: > object to any arbitrary type (eg casts in C++).

: er...
:         Color red become: nil
: granted this is so evil that I would shoot any engineer that tried it.

There must be some use for become: but I could never think of one aside 
from its usefulness in clobbering rogue instances of objects a la

  MyClass allInstances do: [ :each | each become: String new ]

any takers?

Carl
-- 
------------------------------------------------------------------
 Carl Gundel  carlg@world.std.com  Shoptalk Systems  508-872-5315
 author of Liberty BASIC, a 1996 PC Magazine Awards Finalist!
 http://world.std.com/~carlg/basic.html
