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: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2001-12-30 13:58:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!conan.ids.net!zarlenga From: Michael Zarlenga Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Date: Sun, 30 Dec 2001 21:58:22 -0000 Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C2D48CE.FA4FF25A@fsi.net> <3C2EA123.ECBCDB31@fsi.net> User-Agent: tin/pre-1.4-980818 ("Laura") (UNIX) (FreeBSD/3.1-RELEASE (i386)) X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.os.vms:57436 alt.sys.pdp10:8896 comp.sys.dec:10550 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. :> 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 -- -- Mike Zarlenga