From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa66c,7dbbc5a382c050e X-Google-Attributes: gidfa66c,public X-Google-Thread: f6134,7dbbc5a382c050e X-Google-Attributes: gidf6134,public X-Google-Thread: fa528,7dbbc5a382c050e X-Google-Attributes: gidfa528,public X-Google-Thread: f7344,7dbbc5a382c050e X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2001-09-10 15:19:30 PST Date: Mon, 10 Sep 2001 22:42:10 +0200 Newsgroups: comp.org.decus,comp.os.vms,comp.sys.tandem,comp.unix.tru64 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va Organization: Home Message-ID: Subject: Re: RIP Bill Gates From: Paul Sture Reply-To: paul@sture.ch References: <6Pbl7.8297$Op6.1683398@typhoon1.gnilink.net> <9n3t8t$b6e$1@pyrite.mv.net> <9ndgae$m9u@web.nmti.com> <3B9AC8F5.50E57870@videotron.ca> <3B9BC2D9.81772B6B@videotron.ca> NNTP-Posting-Host: 212.254.82.26 X-Trace: news.datacomm.ch 1000160353 212.254.82.26 (11 Sep 2001 00:19:13 +0200) Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news2.kpn.net!news.kpn.net!nslave.kpnqwest.net!nloc2.kpnqwest.net!nmaster.kpnqwest.net!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!newsmaster-01.atnet.at!atnet.at!news.datacomm.ch Xref: archiver1.google.com comp.org.decus:1637 comp.os.vms:43779 comp.sys.tandem:1533 comp.unix.tru64:4804 In article <3B9BC2D9.81772B6B@videotron.ca>, JF Mezei wrote: > Paul Sture wrote: > > Dunno much about C and Unix, but from the VAX calling standard point of view: > > > > When passing integers to subroutines by reference (the default in VMS), the > > endianness is all important. If you want to pass an Integer:4 to a routine > > expecting an Integer:2 or Integer:1, it works fine because the least > > significant byte is in position 0 (which is the address passed). > > But isn't that tantamount to a latent bug in your program when you do that ? Arguably so, yes. But no other sensible way in COBOL that I know of. (Believe me, calling system routines from early versions of COBOL on VMS was, ahem, interesting). > Besides, doesn't the C compiler complain now when you pass the wrong sized > argument to a subroutine ? > As I said, I don't know C well enough. Does everyone's C compiler do that? [rest snipped] ___ Paul Sture Switzerland