home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!rpi!zaphod.mps.ohio-state.edu!rphroy!link.ph.gmr.com!rrichter
- From: rrichter@link.ph.gmr.com (Roy Richter PH/32)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: TCL: Bizzare Behavior Time
- Message-ID: <96325@rphroy.ph.gmr.com>
- Date: 12 Jan 93 14:05:30 GMT
- References: <1993Jan11.170231.17969@fsl.noaa.gov> <1993Jan11.220137.26434@kth.se>
- Sender: news@rphroy.ph.gmr.com
- Organization: GM Research
- Lines: 22
- Nntp-Posting-Host: link.ph.gmr.com
-
- In article <1993Jan11.220137.26434@kth.se>, d88-jwa@byse.nada.kth.se (Jon Wtte) writes:
- |> The call to new is risky unless you have locked the
- |> object doing the call; try an intermediate temp variable:
- |>
- |> CFoo :: DoFoo ( )
- |> {
- |> CBar * aBar = new CBar ;
- |>
- |> theBar = aBar ;
- |> }
-
- Do I have to be this nutso careful when dealing with TCL Objects?
- And, does coding it like this protect me -- that is, is "theBar"
- have a correct reference after the call to "new". If so, when does that
- refence get corrected? If
-
- theBar = new CBar;
-
- is potentially bad, maybe that should be somewhere in the docs.
- --
- Roy Richter Internet: rrichter@ph.gmr.com
- Physics Dept, GM Research UUCP: rphroy!rrichter
-