From: Paul Sture <paul@sture.ch>
Subject: Re: RIP Bill Gates
Date: Mon, 10 Sep 2001 22:42:10 +0200 [thread overview]
Message-ID: <VA.00000439.004a630b@sture.ch> (raw)
In-Reply-To: 3B9BC2D9.81772B6B@videotron.ca
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
next prev parent reply other threads:[~2001-09-10 20:42 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-04 21:36 RIP Bill Gates Jeff Killeen
2001-09-04 21:41 ` Udo Grabowski
2001-09-04 22:09 ` Bill Todd
2001-09-04 22:22 ` Jeff Killeen
2001-09-04 22:53 ` Bill Todd
2001-09-04 22:57 ` Bill Todd
2001-09-04 23:02 ` David Masterson
2001-09-05 0:11 ` Terry C. Shannon
2001-09-05 0:57 ` Bill Todd
2001-09-08 16:17 ` Peter da Silva
2001-09-08 17:09 ` Brian Wheeler
2001-09-11 19:49 ` bad bob
2001-09-08 17:22 ` Bill Todd
2001-09-10 9:34 ` andrew harrison
2001-09-10 10:37 ` andrew harrison
2001-09-09 1:42 ` JF Mezei
2001-09-09 2:45 ` Bill Todd
2001-09-09 7:47 ` Adam Price
2001-09-09 11:02 ` Bill Todd
2001-09-09 12:49 ` Peter da Silva
2001-09-09 19:27 ` Bill Todd
2001-09-09 19:35 ` LBohan
2001-09-10 1:30 ` Peter da Silva
2001-09-10 9:42 ` andrew harrison
2001-09-10 10:30 ` Michael Kraemer
2001-09-09 7:35 ` Paul Sture
2001-09-09 19:28 ` JF Mezei
2001-09-10 20:42 ` Paul Sture [this message]
2001-09-09 12:46 ` Peter da Silva
2001-09-09 17:05 ` QjoeW.EpetersonR
2001-09-05 2:34 ` Jack Patteeuw
2001-09-05 0:04 ` Terry C. Shannon
2001-09-05 0:18 ` Jeff Killeen
2001-09-05 1:00 ` Bill Todd
2001-09-05 2:46 ` Randall S. Becker
2001-09-05 19:47 ` Graham Allan
2001-09-05 3:20 ` David J. Dachtera
2001-09-05 1:34 ` JF Mezei
2001-09-05 3:55 ` Mark Bartelt
2001-09-05 1:21 ` JF Mezei
2001-09-05 2:05 ` Jeff Killeen
2001-09-05 9:11 ` Alan Greig
2001-09-05 11:09 ` andrew harrison
2001-09-05 12:46 ` Jeff Killeen
2001-09-05 13:36 ` Alan Greig
2001-09-05 23:29 ` Jeff Killeen
2001-09-06 0:16 ` Bill Todd
2001-09-06 3:47 ` Jeff Killeen
2001-09-06 4:53 ` Bill Todd
2001-09-06 3:49 ` Jeff Killeen
2001-09-06 8:34 ` Alan Greig
2001-09-05 14:22 ` Terry C. Shannon
2001-09-05 15:38 ` Alan Greig
2001-09-05 19:17 ` Tim Llewellyn
2001-09-05 13:00 ` Jeff Killeen
2001-09-05 15:47 ` Alan Greig
2001-09-05 8:44 ` Alan Greig
2001-09-05 13:04 ` Jeff Killeen
2001-09-05 15:48 ` Alan Greig
2001-09-06 3:38 ` Jeff Killeen
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox