Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csmil.umich.edu From: cash@csmil.umich.edu (Howard Cash) Newsgroups: comp.sys.mac.programmer Subject: Declaring "thePort" Message-ID: <1069@mailrus.cc.umich.edu> Date: 10 May 89 06:23:27 GMT Sender: usenet@mailrus.cc.umich.edu Reply-To: cash@csmil.umich.edu (Howard Cash) Organization: Cognitive Science and Machine Intelligence Laboratory Lines: 18 What are the consequences of declaring a local variable within a function called "thePort" and setting it explicitly with GetPort(thePort). I find the following code in some examples in LSC TransSkel (release 2.0) DoWClose () { GrafPtr thePort; MenuHandle m; Integer i, mItems; Str255 iTitle, wTitle; GetPort (&thePort); /* grafport of window to be closed */ Seems kind of strange to me.... -howard