🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #20003

Re: When to HLock

#20003
From: Joel West
Date: Fri, 09 Oct 1987 01:05
19 lines
1506 bytes
In article <21206@ucbvax.BERKELEY.EDU>, oster@dewey.soe.berkeley.edu (David Phillip Oster) writes:
> The arguments of a function are fully evaluated before the function
> gets called.  (**TheText).nLines evaluates to an Integer, and integers are
> passed by value in C.

Of course, Pascal programs have to be careful to watch out for VAR
parameters, since VAR parameters are passed by reference and the
block might have relocated by the time the procedure call completes
and it's time to store the value.

In C, it's a little safer (one of the few times it is) since
you see the parameter being passed as &foo (by reference.)
Or rather, you hopefully saw that it was a VAR parameter and
remembered to pass it by reference (my favorite Mac C gotcha!)
-- 
	Joel West  (c/o UCSD)
	Palomar Software, Inc., P.O. Box 2635, Vista, CA  92083
	{ucbvax,ihnp4}!sdcsvax!jww 	jww@sdcsvax.ucsd.edu
So. California: where the ground does the Rocking 'N Rolling for you
Technical Details
Message-ID: <4059@sdcsvax.UCSD.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!cmcl2!beta!hc!ames!sdcsvax!jww
References: <960@mntgfx.MENTOR.COM> <2961@husc6.UUCP> <21206@ucbvax.BERKELEY.EDU>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!cmcl2!beta!hc!ames!sdcsvax!jww
From: jww@sdcsvax.UCSD.EDU (Joel West)
Newsgroups: comp.sys.mac
Subject: Re: When to HLock
Message-ID: <4059@sdcsvax.UCSD.EDU>
Date: Thu, 8-Oct-87 21:05:05 EDT
Article-I.D.: sdcsvax.4059
Posted: Thu Oct  8 21:05:05 1987
Date-Received: Sun, 11-Oct-87 10:25:43 EDT
References: <960@mntgfx.MENTOR.COM> <2961@husc6.UUCP> <21206@ucbvax.BERKELEY.EDU>
Organization: Palomar Software, Inc., Vista, CA
Lines: 19