From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-12-31 16:55:04 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub1.nntpserver.com!peer1-sjc1.usenetserver.com!usenetserver.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin1.nnrp.aus1.giganews.com.POSTED!not-for-mail Message-ID: <3C31097A.8DEB4909@fsi.net> From: "David J. Dachtera" X-Mailer: Mozilla 4.77 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C2D48CE.FA4FF25A@fsi.net> <3C2EA123.ECBCDB31@fsi.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Date: Mon, 31 Dec 2001 18:54:47 CST Organization: Giganews.Com - Premium News Outsourcing X-Trace: sv3-YfLJGqYsfDVQY82E6vJAdlAGSFW1YiOknTwtYyx/eb6+sPYF8eEDMwYHGD1jco29fAsFB0LkgaVEuWS!Xztwecfu/Z06LJ4XEUAGVWWnQpgBwzY/bAEYB7PvvWpR0CjHbxqPz3hjSA== X-Complaints-To: abuse@GigaNews.Com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Tue, 01 Jan 2002 00:54:48 GMT Xref: archiver1.google.com comp.os.vms:57582 alt.sys.pdp10:8936 comp.sys.dec:10634 Michael Zarlenga wrote: > > In comp.os.vms David J. Dachtera wrote: > :> Just its ability to do functions which return values is > :> worth a lot. In DCL the next best thing we have is CALL > :> but then you have to set global variable to communicate > :> return values back to the caller. > > : Use GOSUB instead then. You can't pass parameters on the GOSUB > : statement, but all local and global symbols are "visible" regardless of > : the GOSUB depth. CALL is like "@" - it creates a new procedure depth. > > The benefits of functions come directly from the ability > to have calling arguments and return values, otherwise, we > would all just use global variables and gotos in C. In Macro (VAX Assembler - its a "3"GL on Alpha, sort of), you push the address or value of an argument or the address of an argument block onto the stack, then branch to the subroutine (usually via a CALLG, CALLS or similar). > :> Toss in the ability to include other .ksh code into the > :> current .ksh program as code and you have a much more power- > :> ful scripting language. > > : Can you provide an example? Your explanation is confusing. > > . mystuff.ksh I'm sure that means something to well-seasoned UN*X folks. I'll need a deeper explanation of the mechanism before it completely makes sense. -- David J. Dachtera dba DJE Systems http://www.djesys.com/ Unofficial Affordable OpenVMS Home Page: http://www.djesys.com/vms/soho/